blob: 576e57d0716a9e3f1fbf5ed520f456d756acaf43 [file] [log] [blame]
Shih-wei Liaof8fd82b2010-02-10 11:10:31 -08001// RUN: %clang_cc1 -fsyntax-only -verify %s
2class C;
3class C {
4public:
5protected:
6 typedef int A,B;
7 static int sf(), u;
8
9 struct S {};
10 enum {};
11 int; // expected-error {{declaration does not declare anything}}
12 int : 1, : 2;
13
14public:
15 void m() {
16 int l = 2;
17 }
18 virtual int vf() const volatile = 0;
19
20private:
21 int x,f(),y,g();
22 inline int h();
23 static const int sci = 10;
24 mutable int mi;
25};
26void glo()
27{
28 struct local {};
29}
30
31// PR3177
32typedef union {
33 __extension__ union {
34 int a;
35 float b;
36 } y;
37} bug3177;
38