aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--testcases/anonymous_struct1.c6
-rw-r--r--testcases/anonymous_struct2.c7
2 files changed, 13 insertions, 0 deletions
diff --git a/testcases/anonymous_struct1.c b/testcases/anonymous_struct1.c
new file mode 100644
index 0000000..2709f70
--- /dev/null
+++ b/testcases/anonymous_struct1.c
@@ -0,0 +1,6 @@
+int main() {
+ struct {int x, y;} a, b, c;
+ a = b;
+ b = c;
+ c = a;
+}
diff --git a/testcases/anonymous_struct2.c b/testcases/anonymous_struct2.c
new file mode 100644
index 0000000..b17e6c0
--- /dev/null
+++ b/testcases/anonymous_struct2.c
@@ -0,0 +1,7 @@
+int main() {
+ struct {int x, y;} a;
+ struct {int x, y;} b, c;
+ a = b;
+ b = c;
+ c = a;
+}