1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -fsyntax-only -verify -w %s 2*f4a2713aSLionel Sambuc 3*f4a2713aSLionel Sambuc struct ABC { 4*f4a2713aSLionel Sambuc static double a; 5*f4a2713aSLionel Sambuc static double b; 6*f4a2713aSLionel Sambuc static double c; 7*f4a2713aSLionel Sambuc static double d; 8*f4a2713aSLionel Sambuc static double e; 9*f4a2713aSLionel Sambuc static double f; 10*f4a2713aSLionel Sambuc }; 11*f4a2713aSLionel Sambuc 12*f4a2713aSLionel Sambuc double ABC::a = 1.0; 13*f4a2713aSLionel Sambuc extern double ABC::b = 1.0; // expected-error {{static data member definition cannot specify a storage class}} 14*f4a2713aSLionel Sambuc static double ABC::c = 1.0; // expected-error {{'static' can only be specified inside the class definition}} 15*f4a2713aSLionel Sambuc __private_extern__ double ABC::d = 1.0; // expected-error {{static data member definition cannot specify a storage class}} 16*f4a2713aSLionel Sambuc auto double ABC::e = 1.0; // expected-error {{static data member definition cannot specify a storage class}} 17*f4a2713aSLionel Sambuc register double ABC::f = 1.0; // expected-error {{static data member definition cannot specify a storage class}} 18