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