2009-12-16 04:14:24 +08:00
|
|
|
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
2008-11-08 23:40:37 +08:00
|
|
|
class C;
|
2008-06-25 06:12:16 +08:00
|
|
|
class C {
|
|
|
|
public:
|
|
|
|
protected:
|
|
|
|
typedef int A,B;
|
|
|
|
static int sf(), u;
|
|
|
|
|
|
|
|
struct S {};
|
|
|
|
enum {};
|
2010-04-09 05:33:23 +08:00
|
|
|
int; // expected-warning {{declaration does not declare anything}}
|
2008-06-28 16:10:48 +08:00
|
|
|
int : 1, : 2;
|
2008-06-25 06:12:16 +08:00
|
|
|
|
|
|
|
public:
|
|
|
|
void m() {
|
|
|
|
int l = 2;
|
|
|
|
}
|
2008-11-08 23:40:37 +08:00
|
|
|
virtual int vf() const volatile = 0;
|
2008-06-25 06:12:16 +08:00
|
|
|
|
|
|
|
private:
|
|
|
|
int x,f(),y,g();
|
2008-11-08 23:40:37 +08:00
|
|
|
inline int h();
|
|
|
|
static const int sci = 10;
|
2008-11-15 07:42:31 +08:00
|
|
|
mutable int mi;
|
2008-06-25 06:12:16 +08:00
|
|
|
};
|
2008-11-08 23:40:37 +08:00
|
|
|
void glo()
|
|
|
|
{
|
|
|
|
struct local {};
|
|
|
|
}
|
2008-12-18 09:12:00 +08:00
|
|
|
|
|
|
|
// PR3177
|
|
|
|
typedef union {
|
|
|
|
__extension__ union {
|
|
|
|
int a;
|
|
|
|
float b;
|
|
|
|
} y;
|
|
|
|
} bug3177;
|
|
|
|
|