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