aboutsummaryrefslogtreecommitdiff
path: root/tests/include
diff options
context:
space:
mode:
authorGanesh Viswanathan <dev@genotrance.com>2020-04-14 22:47:33 -0500
committerGanesh Viswanathan <dev@genotrance.com>2020-04-14 22:47:33 -0500
commit25b07a07fff0c15ddae2610016289368fe41f3e2 (patch)
tree0b4f73bd8efa034b2710cb88921d61c3bcf92ba9 /tests/include
parent92fe90f834b1afc1098d4ed63760ca811ab48484 (diff)
downloadnimterop-25b07a07fff0c15ddae2610016289368fe41f3e2.tar.gz
nimterop-25b07a07fff0c15ddae2610016289368fe41f3e2.zip
ast2 nested array field
Diffstat (limited to 'tests/include')
-rw-r--r--tests/include/tast2.h46
1 files changed, 46 insertions, 0 deletions
diff --git a/tests/include/tast2.h b/tests/include/tast2.h
index 136784a..fe78146 100644
--- a/tests/include/tast2.h
+++ b/tests/include/tast2.h
@@ -175,6 +175,29 @@ typedef struct {
const char* const* x;
} SomeType;
+// Nested #137
+typedef struct {
+ struct NT1 { int f1; } f1;
+ struct { int f1; } f2;
+
+ struct NT3 {
+ struct {
+ int f1;
+ union NU1 {
+ float f1;
+ } f2;
+ enum { NEV1, NEV2, NEV3 } f3;
+ } f1;
+ } f3;
+
+ struct { int f1; } f4;
+
+ union NU2 { int f1; } f5;
+ union { int f1; } f6;
+ enum NE1 { NEV4 = 8, NEV5 } f7;
+ enum { NEV6 = 8 * 8, NEV7 } f8;
+} nested;
+
// DUPLICATES
@@ -344,6 +367,29 @@ typedef struct {
const char* const* x;
} SomeType;
+// Nested #137
+typedef struct {
+ struct NT1 { int f1; } f1;
+ struct { int f1; } f2;
+
+ struct NT3 {
+ struct {
+ int f1;
+ union NU1 {
+ float f1;
+ } f2;
+ enum { NEV1, NEV2, NEV3 } f3;
+ } f1;
+ } f3;
+
+ struct { int f1; } f4;
+
+ union NU2 { int f1; } f5;
+ union { int f1; } f6;
+ enum NE1 { NEV4 = 8, NEV5 } f7;
+ enum { NEV6 = 8 * 8, NEV7 } f8;
+} nested;
+
#endif