aboutsummaryrefslogtreecommitdiff
path: root/testcases
diff options
context:
space:
mode:
authorTeddy <[email protected]>2014-04-13 10:37:00 +0800
committerTeddy <[email protected]>2014-04-13 10:37:00 +0800
commit47ce7f1266ce1a68551c839fdcfb99c45cdc186e (patch)
tree5582e7bf2d016e7ba06d06c1f5b92a73ffedb634 /testcases
parente367f7db025eabd57d0c150e1072cb2ead724f5c (diff)
add anonymous struct testcases
Diffstat (limited to 'testcases')
-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;
+}