f4a2713ac8
Change-Id: Ia40e9ffdf29b5dab2f122f673ff6802a58bc690f
17 lines
766 B
C++
17 lines
766 B
C++
// RUN: %clang_cc1 -fsyntax-only -verify -w %s
|
|
|
|
struct ABC {
|
|
static double a;
|
|
static double b;
|
|
static double c;
|
|
static double d;
|
|
static double e;
|
|
static double f;
|
|
};
|
|
|
|
double ABC::a = 1.0;
|
|
extern double ABC::b = 1.0; // expected-error {{static data member definition cannot specify a storage class}}
|
|
static double ABC::c = 1.0; // expected-error {{'static' can only be specified inside the class definition}}
|
|
__private_extern__ double ABC::d = 1.0; // expected-error {{static data member definition cannot specify a storage class}}
|
|
auto double ABC::e = 1.0; // expected-error {{static data member definition cannot specify a storage class}}
|
|
register double ABC::f = 1.0; // expected-error {{static data member definition cannot specify a storage class}}
|