[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / SemaCXX / class-names.cpp
blob2962988bec5b7d0d2b107f0d0ed90ab4296a915d
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 class C { };
4 C c;
6 void D(int);
8 class D {};
10 void foo()
12 D(5);
13 class D d;
16 class D; // expected-note {{previous use is here}}
18 enum D; // expected-error {{use of 'D' with tag type that does not match previous declaration}}
20 class A * A;
22 class A * a2;
24 void bar()
26 A = 0;
29 void C(int);
31 void bar2()
33 C(17);
36 extern int B;
37 class B;
38 class B {};
39 int B;
41 enum E { e1_val };
42 E e1;
44 void E(int);
46 void bar3() {
47 E(17);
50 enum E e2;
52 enum E2 { E2 };