aboutsummaryrefslogtreecommitdiff
path: root/testcases/local_struct.c
diff options
context:
space:
mode:
authorTeddy <ted.sybil@gmail.com>2014-04-16 03:32:53 +0800
committerTeddy <ted.sybil@gmail.com>2014-04-16 03:32:53 +0800
commit3c520b2038e749e545a98f6b77c52f74eedb0e40 (patch)
tree18ff0df9a934cc4ffde490c9bef0fb328aa9b24f /testcases/local_struct.c
parentad83151b81584d15966d620a93430a723fee8200 (diff)
...
Diffstat (limited to 'testcases/local_struct.c')
-rw-r--r--testcases/local_struct.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/testcases/local_struct.c b/testcases/local_struct.c
new file mode 100644
index 0000000..28cb223
--- /dev/null
+++ b/testcases/local_struct.c
@@ -0,0 +1,7 @@
+struct A {int x; int y; } b;
+int f(struct A {int a;} p) {
+ struct A a;
+ a.x;
+}
+int main() {
+}