File tree 1 file changed +29
-2
lines changed
1 file changed +29
-2
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,10 @@ struct s2 {
9
9
float y : 5;
10
10
};
11
11
12
+ struct s3 {
13
+ int x : 1, y : 2;
14
+ };
15
+
12
16
---
13
17
14
18
(translation_unit
@@ -23,7 +27,19 @@ struct s2 {
23
27
(field_declaration
24
28
type: (primitive_type)
25
29
declarator: (field_identifier)
26
- (bitfield_clause (number_literal))))))
30
+ (bitfield_clause
31
+ (number_literal)))))
32
+ (struct_specifier
33
+ name: (type_identifier)
34
+ body: (field_declaration_list
35
+ (field_declaration
36
+ type: (primitive_type)
37
+ declarator: (field_identifier)
38
+ (bitfield_clause
39
+ (number_literal))
40
+ declarator: (field_identifier)
41
+ (bitfield_clause
42
+ (number_literal))))))
27
43
28
44
============================================
29
45
Union declarations
@@ -67,6 +83,10 @@ enum e3 {
67
83
val1,
68
84
};
69
85
86
+ enum e4: int {
87
+ val1,
88
+ };
89
+
70
90
---
71
91
72
92
(translation_unit
@@ -81,7 +101,14 @@ enum e3 {
81
101
(enum_specifier
82
102
name: (type_identifier)
83
103
body: (enumerator_list
84
- (enumerator name: (identifier)))))
104
+ (enumerator
105
+ name: (identifier))))
106
+ (enum_specifier
107
+ name: (type_identifier)
108
+ underlying_type: (primitive_type)
109
+ body: (enumerator_list
110
+ (enumerator
111
+ name: (identifier)))))
85
112
86
113
======================================================
87
114
Struct declarations containing preprocessor directives
You can’t perform that action at this time.
0 commit comments