db/fixup_kernel.sh: fix clear_user() handling
[smatch.git] / validation / badtype3.c
blobc111d94e727deb437946d5f1710870b613055b4c
1 int
2 foo (int (*func) (undef, void *), void *data)
4 int err = 0;
5 while (cur) {
6 if ((*func) (cur, data))
7 break;
9 return err;
13 * check-name: missing type in argument list
14 * check-error-start
15 badtype3.c:2:18: warning: identifier list not in definition
16 badtype3.c:2:24: error: Expected ) in function declarator
17 badtype3.c:2:24: error: got ,
18 badtype3.c:5:3: error: Trying to use reserved word 'while' as identifier
19 badtype3.c:5:10: error: missing type declaration for parameter 'cur'
20 badtype3.c:7:7: error: break/continue not in iterator scope
21 badtype3.c:9:3: error: Trying to use reserved word 'return' as identifier
22 badtype3.c:9:10: error: Expected ; at end of declaration
23 badtype3.c:9:10: error: got err
24 badtype3.c:10:1: error: Expected ; at the end of type declaration
25 badtype3.c:10:1: error: got }
26 badtype3.c:6:11: error: undefined identifier 'func'
27 * check-error-end