blob: 9a43103d15f556ed3fa911e45005211900ed6b22 (
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
|
// option-def, type-spec, fundamental-type-spec, option-name-seq,
// option-name, initializer, initializer-expr
//
class c
{
bool --bool;
char --char;
int -i1;
unsigned int -i2;
int unsigned -i3;
long -i4;
long int -i5;
int long -i6;
unsigned long -i7;
long unsigned -i8;
unsigned long int -i9;
long unsigned int -i10;
int long unsigned -i11;
unsigned int long -i12;
short -i13;
unsigned short -i14;
short unsigned -i15;
char -i16;
signed char -i17;
char signed -i18;
unsigned char -i19;
char unsigned -i20;
double -d1;
long double -d2;
double long -d3;
foo -o1;
::foo -o2;
::foo<bar> -o3;
foo::bar -o4;
::foo::bar -o5;
::foo<bar>::baz -o6;
::foo<bar>::baz< ::fox<2> > -o7;
bool -n1|--name1|/name1;
bool "-n2"|"--name2";
string -init1 = "string";
char -init2 = 'c';
int -init3 = -5;
bool -inti4 = true;
long -init5 = (2 * 4 - 5);
type -init6 = type::default_value;
type -init7 (abc, 2 - 1);
};
|