aboutsummaryrefslogtreecommitdiff
path: root/testcases
diff options
context:
space:
mode:
authorTeddy <[email protected]>2014-04-11 21:05:02 +0800
committerTeddy <[email protected]>2014-04-11 21:05:02 +0800
commite1b7e90e8975f62c2dd4d5add7f31f2771c7f9a7 (patch)
treee5e6f36d946b18be5278cfe835ceb79d56ed0f35 /testcases
parente3907f9af283c71b635a51265a155ee00e7ef81e (diff)
passed the base test
Diffstat (limited to 'testcases')
-rw-r--r--testcases/pass.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/testcases/pass.c b/testcases/pass.c
index cbd57b6..e489366 100644
--- a/testcases/pass.c
+++ b/testcases/pass.c
@@ -94,6 +94,13 @@ void array() {
int a[(1 + 1 == 2) * 2];
}
+void local_decl() {
+ int y = y;
+ {
+ int x = x;
+ }
+}
+
struct Node n;
struct Node {int x, y;} n;
/* global forward declaration is ok */