db/fixup_kernel.sh: fix clear_user() handling
[smatch.git] / validation / old-style-definition1.c
blobf65d7dfe3187295741523ba9ebbc0ad924522706
1 extern int foo(int a, void *b);
3 int foo(a, b)
4 int a;
5 void *b;
7 if (b)
8 return a;
12 * check-name: old-stype-definition enabled
13 * check-command: sparse -Wold-style-definition $file
15 * check-error-start
16 old-style-definition1.c:4:9: warning: non-ANSI definition of function 'foo'
17 * check-error-end