kernel: fix a type bug handling err_cast()
[smatch.git] / validation / implicit-KR-arg-type1.c
blobfe199ef52cf142fc6b895fbacb0f138d603108be
1 int foo(a, b)
2 int a;
4 if (b)
5 return a;
8 /*
9 * check-name: implicit-KR-arg-type1
10 * check-command: sparse -Wold-style-definition -Wimplicit-int $file
12 * check-error-start
13 implicit-KR-arg-type1.c:2:9: warning: non-ANSI definition of function 'foo'
14 implicit-KR-arg-type1.c:1:12: error: missing type declaration for parameter 'b'
15 * check-error-end