Module Name: src Committed By: rillig Date: Sat Nov 30 16:20:42 UTC 2024
Modified Files: src/tests/usr.bin/xlint/lint2: msg_011.exp msg_011.ln Log Message: tests/lint: demonstrate wrong type name for prototype function To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/tests/usr.bin/xlint/lint2/msg_011.exp cvs rdiff -u -r1.3 -r1.4 src/tests/usr.bin/xlint/lint2/msg_011.ln 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/lint2/msg_011.exp diff -u src/tests/usr.bin/xlint/lint2/msg_011.exp:1.2 src/tests/usr.bin/xlint/lint2/msg_011.exp:1.3 --- src/tests/usr.bin/xlint/lint2/msg_011.exp:1.2 Sat Aug 7 19:07:03 2021 +++ src/tests/usr.bin/xlint/lint2/msg_011.exp Sat Nov 30 16:20:42 2024 @@ -4,3 +4,8 @@ add, arg 1 used inconsistently msg_011 add, arg 2 used inconsistently msg_011_define.c(2)[double] :: msg_011_call.c(4)[int] add, arg 1 declared inconsistently (double != int) msg_011_define.c(2) :: msg_011_call.c(2) add, arg 2 declared inconsistently (double != int) msg_011_define.c(2) :: msg_011_call.c(2) +func_param defined( msg_011_call_func.c(11) ), but never used +func_param, arg 1 declared inconsistently (pointer to function(char) returning void != pointer to function() returning void) msg_011_call_func.c(11) :: msg_011_call_func.c(12) +func_param, arg 1 declared inconsistently (pointer to function(char) returning void != pointer to function() returning void) msg_011_call_func.c(11) :: msg_011_call_func.c(13) +func_param, arg 1 declared inconsistently (pointer to function(char) returning void != pointer to function(double) returning void) msg_011_call_func.c(11) :: msg_011_call_func.c(14) +func_param, arg 1 declared inconsistently (pointer to function(char) returning void != pointer to function(double, double) returning void) msg_011_call_func.c(11) :: msg_011_call_func.c(15) Index: src/tests/usr.bin/xlint/lint2/msg_011.ln diff -u src/tests/usr.bin/xlint/lint2/msg_011.ln:1.3 src/tests/usr.bin/xlint/lint2/msg_011.ln:1.4 --- src/tests/usr.bin/xlint/lint2/msg_011.ln:1.3 Tue Aug 24 23:38:51 2021 +++ src/tests/usr.bin/xlint/lint2/msg_011.ln Sat Nov 30 16:20:42 2024 @@ -1,4 +1,4 @@ -# $NetBSD: msg_011.ln,v 1.3 2021/08/24 23:38:51 rillig Exp $ +# $NetBSD: msg_011.ln,v 1.4 2024/11/30 16:20:42 rillig Exp $ # # Test data for message 11 of lint2: # %s, arg %d declared inconsistently (%s != %s) %s :: %s @@ -15,3 +15,11 @@ S msg_011_call.c 2 d 0.2 e 3add F2 I I I 4 c 0.4 p1 p2 u 3add f2 I I I 4 d 0.4 d r 4main F0 I + +0smsg_011_call_func.c +Smsg_011_call_func.c +11d0.11d10func_paramF1PF1CVV +12d0.12e10func_paramF1PFVV +13d0.13e10func_paramF1PF0VV +14d0.14e10func_paramF1PF1DVV +15d0.15e10func_paramF1PF2DDVV