xref: /illumos-gate/usr/src/tools/smatch/src/validation/strict-prototypes1.c (revision 1b58875ad7966cf2c85ee8e92f3da04f0a3b2f7a)
1 extern void func0();
2 extern void func1(), func2();
3 
4 /*
5  * check-name: strict-prototypes enabled
6  * check-command: sparse -Wstrict-prototypes $file
7  * check-known-to-fail
8  *
9  * check-error-start
10 strict-prototypes1.c:1:18: warning: non-ANSI function declaration of function 'func0'
11 strict-prototypes1.c:2:18: warning: non-ANSI function declaration of function 'func1'
12 strict-prototypes1.c:2:27: warning: non-ANSI function declaration of function 'func2'
13  * check-error-end
14  */
15