summaryrefslogtreecommitdiffstats
blob: 542373ff4c846d76997fb6bd02da706be9163859 (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
//!DeclSpecifierTest
//%CPP
inline int foo()
{
    return 1;
}

const int a = 1;
volatile int b = 3;
typedef int* intp;
extern int b;
static int c;

int foo()
{
    int i = 1;
    return i;
}

int bar()
{
    register int i = c;
    return i;
}


//!CompositeTypeSpecifier
//%CPP
struct B
{
    int c;
    char b;
};
union D
{
    int i;
    int y;
};
class E
{
public:
    int c;
};

//!ElaboratedTypeSpecifier
//%CPP
class A* A;
enum Status{ good, bad};
enum Status stat;
union D
{
    int i;
    int y;
};
union D d;
struct S* S;

//!EnumeratioSpecifier
//%CPP
enum Status{ good = 0, bad};

//!NamedTypeSpecifier
//%CPP
typedef int INT;
typedef INT (FOO)(INT);

//!SimpleDeclSpecifier
//%CPP
signed short int i;
unsigned long int y;
float f;
void x();
char c;
double d;

//!CDeclSpecifer
//%C
restrict int i = 1;

//!CCompositeTypeSpecifier
//%C
restrict struct B
{
    int c;
    char b;
};
restrict union D
{
    int i;
    int y;
};

//!CElaboratedTypeSpecifier
//%C
enum Status{ good, bad};
restrict enum Status stat;
union D
{
    int i;
    int y;
};
restrict union D d;

//!CEnumeratioSpecifier
//%C
restrict enum Status{ good, bad};

//!CSimpleDeclSpecifier
//%C
long long int lli;
_Complex float cf;
_Bool b;

//!CPPCompositeTypeSpecifier
//%CPP
class TestClass
{
    explicit TestClass(int);
    friend int AddToFriend(int x);
};
class A
{
};
class TestClass2 : public TestClass, A
{
};

//!protected Base Specifiers
//%CPP
class TestClass
{
    explicit TestClass(int);
    friend int AddToFriend(int x);
};
class TestClass2 : protected TestClass
{
};

//!private Base Specifiers
//%CPP
class TestClass
{
    explicit TestClass(int);
    friend int AddToFriend(int x);
};
class TestClass2 : private TestClass
{
};

//!CPPNamedTypeSpecifier
//%CPP
template<class T> class A
{
    typedef char C;
};

//!SimpleDeclSpecifier
//%CPP
bool b;
wchar_t wc;

//!ICPPSimpleDeclSpecifier mutable Bug 40
//%CPP
mutable int n;

//!C++0x auto keyword Bug 318588
//%CPP
auto var = 42;

//!C++0x long long keyword Bug 318588
//%CPP
long long int i;

//!C++0x decltype
//%CPP
int i;
decltype(i) j = 3;

//!C++0x typeof
//%CPP
int i;
typeof i j = 3;