Home | History | Annotate | Download | only in Sema

Lines Matching full:extern

1 // RUN: %clang_cc1 -verify -fsyntax-only -Wno-private-extern %s
2 // RUN: %clang_cc1 -verify -fsyntax-only -Wno-private-extern -fmodules %s
8 extern int g1;
16 extern int g4; // expected-note{{previous definition}}
24 extern int g6; // expected-error {{extern declaration of 'g6' follows non-extern declaration}}
29 __private_extern__ int g7; // expected-error {{extern declaration of 'g7' follows non-extern declaration}}
33 extern int g8; // expected-note{{previous definition}}
34 int g8; // expected-error {{non-extern declaration of 'g8' follows extern declaration}}
39 int g9; // expected-error {{non-extern declaration of 'g9' follows extern declaration}}
43 extern int g10;
44 extern int g10;
54 extern int g12;
61 extern int g13;
66 extern struct s0 g14;
72 extern int g15 = 0; // expected-error{{'extern' variable cannot have an initializer}}
74 __private_extern__ int g16 = 0; // expected-error{{'extern' variable cannot have an initializer}}
77 extern int g17;
80 extern int g18 = 0; // expected-warning{{'extern' variable has an initializer}}