param_key: fix container of when no struct member is referenced
[smatch.git] / validation / implicit-KR-arg-type1.c
blobc7eb39aef8c8841b360c2651e70a43cf61029482
1 static int foo(a, b)
2 int a;
4 if (b)
5 return a;
8 static int bar(a)
10 if (a)
11 return a;
15 * check-name: implicit-KR-arg-type1
16 * check-command: sparse -Wold-style-definition -Wimplicit-int $file
18 * check-error-start
19 implicit-KR-arg-type1.c:2:9: warning: non-ANSI definition of function 'foo'
20 implicit-KR-arg-type1.c:1:19: warning: missing type declaration for parameter 'b'
21 implicit-KR-arg-type1.c:8:16: error: missing type declaration for parameter 'a'
22 * check-error-end