summaryrefslogtreecommitdiff
path: root/tests/unnamed_fields.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unnamed_fields.c')
-rw-r--r--tests/unnamed_fields.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/unnamed_fields.c b/tests/unnamed_fields.c
new file mode 100644
index 0000000..d259d44
--- /dev/null
+++ b/tests/unnamed_fields.c
@@ -0,0 +1,13 @@
+struct xyz {
+ int z;
+ struct {
+ int x;
+ int y;
+ };
+};
+
+int main() {
+ struct xyz abc;
+ abc.x = 5;
+ return abc.x;
+}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback