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