param_key: use get_name_sym_from_key() instead of return_state_to_var_sym()
[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