diff options
author | Teddy <[email protected]> | 2014-04-13 10:37:00 +0800 |
---|---|---|
committer | Teddy <[email protected]> | 2014-04-13 10:37:00 +0800 |
commit | 47ce7f1266ce1a68551c839fdcfb99c45cdc186e (patch) | |
tree | 5582e7bf2d016e7ba06d06c1f5b92a73ffedb634 | |
parent | e367f7db025eabd57d0c150e1072cb2ead724f5c (diff) |
add anonymous struct testcases
-rw-r--r-- | testcases/anonymous_struct1.c | 6 | ||||
-rw-r--r-- | testcases/anonymous_struct2.c | 7 |
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; +} |