2010-04-20 05:31:25 +08:00
|
|
|
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
2010-04-20 06:34:40 +08:00
|
|
|
extern const int PR6495a = 42;
|
|
|
|
extern int PR6495b = 42; // expected-warning{{'extern' variable has an initializer}}
|
2010-04-22 22:36:26 +08:00
|
|
|
extern const int PR6495c[] = {42,43,44};
|
2011-03-26 10:09:52 +08:00
|
|
|
|
2013-03-19 06:52:47 +08:00
|
|
|
extern struct Test1 {}; // expected-warning {{'extern' is not permitted on a declaration of a type}}
|
2013-11-14 10:13:03 +08:00
|
|
|
extern "C" struct Test0 { int x; }; // no warning
|