diff options
Diffstat (limited to 'tests/include')
| -rw-r--r-- | tests/include/tast2.h | 46 |
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 |
