1 // RUN: clang-cc -fsyntax-only -verify %s 2 class C; 3 class C { 4 public: 5 protected: 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 14 public: 15 void m() { 16 int l = 2; 17 } 18 virtual int vf() const volatile = 0; 19 20 private: 21 int x,f(),y,g(); 22 inline int h(); 23 static const int sci = 10; 24 mutable int mi; 25 }; 26 void glo() 27 { 28 struct local {}; 29 } 30 31 // PR3177 32 typedef union { 33 __extension__ union { 34 int a; 35 float b; 36 } y; 37 } bug3177; 38 39