cxx-class.cpp revision d7d5f0223bd30dfd618762349c6209dd1d5ea3e6
1// RUN: clang-cc -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
39