1 // RUN: %clang_cc1 %s -verify -fno-spell-checking
3 struct S
{ static int a
,b
,c
;};
4 int S::(a
); // expected-error{{expected unqualified-id}}
5 int S::(b
; // expected-error{{expected unqualified-id}}
8 int S::(*d
); // expected-error{{expected unqualified-id}}
9 int S::(*e
; // expected-error{{expected unqualified-id}}
12 int g
= S::(a
); // expected-error {{expected unqualified-id}} expected-error {{use of undeclared identifier 'a'}}
13 int h
= S::(b
; // expected-error {{expected unqualified-id}} expected-error {{use of undeclared identifier 'b'}}
14 ); // expected-error {{expected unqualified-id}}
19 a
= ::(g
); // expected-error{{expected unqualified-id}}
20 a
= ::(h
; // expected-error{{expected unqualified-id}}
24 // The following tests used to be crash bugs.
27 // expected-error@+2{{a type specifier is required for all declarations}}
28 // expected-error@+1{{expected unqualified-id}}
31 ::((c
)); // expected-error{{expected unqualified-id}}
34 int f1(::(B
) p
); // expected-error {{expected unqualified-id}} expected-error {{use of undeclared identifier 'B'}}
36 int f2(::S::(C
) p
); // expected-error {{expected unqualified-id}} expected-error {{use of undeclared identifier 'C'}}