Module Name: src
Committed By: rillig
Date: Wed Jun 30 14:15:39 UTC 2021
Modified Files:
src/tests/usr.bin/xlint/lint1: msg_215.c msg_215.exp
Log Message:
tests/lint: extend test for message 215 about implicit function
To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/tests/usr.bin/xlint/lint1/msg_215.c \
src/tests/usr.bin/xlint/lint1/msg_215.exp
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/tests/usr.bin/xlint/lint1/msg_215.c
diff -u src/tests/usr.bin/xlint/lint1/msg_215.c:1.5 src/tests/usr.bin/xlint/lint1/msg_215.c:1.6
--- src/tests/usr.bin/xlint/lint1/msg_215.c:1.5 Wed Jun 30 14:11:08 2021
+++ src/tests/usr.bin/xlint/lint1/msg_215.c Wed Jun 30 14:15:39 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: msg_215.c,v 1.5 2021/06/30 14:11:08 rillig Exp $ */
+/* $NetBSD: msg_215.c,v 1.6 2021/06/30 14:15:39 rillig Exp $ */
# 3 "msg_215.c"
// Test for message: function implicitly declared to return int [215]
@@ -20,6 +20,10 @@ test(struct str str)
/* expect+1: error: function implicitly declared to return int [215] */
name();
+ /* expect+2: error: 'parenthesized' undefined [99] */
+ /* expect+1: error: illegal function (type int) [149] */
+ (parenthesized)();
+
/* expect+2: error: type 'struct str' does not have member 'member' [101] */
/* expect+1: error: illegal function (type int) [149] */
str.member();
Index: src/tests/usr.bin/xlint/lint1/msg_215.exp
diff -u src/tests/usr.bin/xlint/lint1/msg_215.exp:1.5 src/tests/usr.bin/xlint/lint1/msg_215.exp:1.6
--- src/tests/usr.bin/xlint/lint1/msg_215.exp:1.5 Wed Jun 30 14:11:08 2021
+++ src/tests/usr.bin/xlint/lint1/msg_215.exp Wed Jun 30 14:15:39 2021
@@ -1,3 +1,5 @@
msg_215.c(21): error: function implicitly declared to return int [215]
-msg_215.c(25): error: type 'struct str' does not have member 'member' [101]
+msg_215.c(25): error: 'parenthesized' undefined [99]
msg_215.c(25): error: illegal function (type int) [149]
+msg_215.c(29): error: type 'struct str' does not have member 'member' [101]
+msg_215.c(29): error: illegal function (type int) [149]