lint: document that message 108 doesn't abort anymore
This commit is contained in:
parent
70a1a91e7b
commit
1c1bd1bbee
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: msg_114.c,v 1.3 2021/01/31 11:12:07 rillig Exp $ */
|
||||
/* $NetBSD: msg_114.c,v 1.4 2021/01/31 16:00:05 rillig Exp $ */
|
||||
# 3 "msg_114.c"
|
||||
|
||||
// Test for message: %soperand of '%s' must be lvalue [114]
|
||||
@ -7,7 +7,14 @@ void
|
||||
example(int a) /* expect: 231 */
|
||||
{
|
||||
3++; /* expect: 114 */
|
||||
// FIXME: lint error: ../common/tyname.c, 190: tspec_name(0)
|
||||
// "string"++;
|
||||
|
||||
/*
|
||||
* Before tree.c 1.137 from 2021-01-09, trying to increment an array
|
||||
* aborted lint with 'common/tyname.c, 190: tspec_name(0)'.
|
||||
*
|
||||
* See msg_108.c for more details.
|
||||
*/
|
||||
"string"++; /* expect: 108 */
|
||||
|
||||
(a + a)++; /* expect: 114 */
|
||||
}
|
||||
|
@ -1,3 +1,4 @@
|
||||
msg_114.c(9): operand of 'x++' must be lvalue [114]
|
||||
msg_114.c(12): operand of 'x++' must be lvalue [114]
|
||||
msg_114.c(17): operand of 'x++' has invalid type (array) [108]
|
||||
msg_114.c(19): operand of 'x++' must be lvalue [114]
|
||||
msg_114.c(7): warning: argument a unused in function example [231]
|
||||
|
Loading…
Reference in New Issue
Block a user