blob: 9fe87b1c1d3c8caf362bb61260af7ed9c33b22f4 [file] [log] [blame]
Rafael Espindola45f96f82013-06-19 13:41:54 +00001// RUN: %clang_cc1 -fsyntax-only -verify -w %s
2
3struct ABC {
4 static double a;
5 static double b;
6 static double c;
7 static double d;
8 static double e;
9 static double f;
10};
11
12double ABC::a = 1.0;
13extern double ABC::b = 1.0; // expected-error {{static data member definition cannot specify a storage class}}
14static double ABC::c = 1.0; // expected-error {{'static' can only be specified inside the class definition}}
15__private_extern__ double ABC::d = 1.0; // expected-error {{static data member definition cannot specify a storage class}}
16auto double ABC::e = 1.0; // expected-error {{static data member definition cannot specify a storage class}}
17register double ABC::f = 1.0; // expected-error {{static data member definition cannot specify a storage class}}