| // RUN: %clang_cc1 %s -std=c90 -verify -fsyntax-only |
| x = g() + 1; // expected-note {{previous implicit declaration}} |
| extern void u(int (*)[h()]); |
| p = h; /* expected-error {{use of undeclared identifier 'h'}} */ |
| p = g; /* expected-error {{use of undeclared identifier 'g'}} */ |
| p = h; /* expected-error {{use of undeclared identifier 'h'}} */ |
| int y = ({ if (x > 0) x = g() + 1; 2*x; }); |
| int (*p)() = g; /* expected-error {{use of undeclared identifier 'g'}} */ |
| {int i = sizeof(PR34822_foo());} /* expected-note {{previous definition is here}} */ |
| {extern int PR34822_foo;} /* expected-error {{redefinition of 'PR34822_foo' as different kind of symbol}} */ |
| {extern int PR34822_bar;} /* expected-note {{previous declaration is here}} */ |
| {int i = sizeof(PR34822_bar());} /* expected-warning {{use of out-of-scope declaration of 'PR34822_bar' whose type is not compatible with that of an implicit declaration}} expected-error {{called object type 'int' is not a function or function pointer}} */ |
| int (*p)() = g; /* expected-error {{use of undeclared identifier 'g'}} */ |
| int (*q)() = h; /* expected-error {{use of undeclared identifier 'h'}} */ |
| float g(); /* expected-error {{conflicting types for 'g'}} */ |