From 47ce7f1266ce1a68551c839fdcfb99c45cdc186e Mon Sep 17 00:00:00 2001 From: Teddy Date: Sun, 13 Apr 2014 10:37:00 +0800 Subject: add anonymous struct testcases --- testcases/anonymous_struct1.c | 6 ++++++ testcases/anonymous_struct2.c | 7 +++++++ 2 files changed, 13 insertions(+) create mode 100644 testcases/anonymous_struct1.c create mode 100644 testcases/anonymous_struct2.c 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; +} -- cgit v1.2.3-70-g09d2