Steve Naroff | fef2f05 | 2008-01-18 00:39:39 +0000 | [diff] [blame] | 1 | // RUN: clang -fsyntax-only -verify %s |
| 2 | |
| 3 | void b; // expected-error {{variable has incomplete type 'void'}} |
| 4 | struct foo f; // expected-error {{variable has incomplete type 'struct foo'}} |
| 5 | |
| 6 | static void c; // expected-error {{variable has incomplete type 'void'}} |
| 7 | static struct foo g; // expected-error {{variable has incomplete type 'struct foo'}} |
| 8 | |
| 9 | extern void d; |
| 10 | extern struct foo e; |
| 11 | |
| 12 | void func() { |
| 13 | void b; // expected-error {{variable has incomplete type 'void'}} |
| 14 | struct foo f; // expected-error {{variable has incomplete type 'struct foo'}} |
| 15 | } |