aboutsummaryrefslogtreecommitdiff
path: root/testcases
diff options
context:
space:
mode:
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 */