summaryrefslogtreecommitdiffstats
path: root/test/Sema/statements.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Sema/statements.c')
-rw-r--r--test/Sema/statements.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Sema/statements.c b/test/Sema/statements.c
index 3cd2460..6da2daa 100644
--- a/test/Sema/statements.c
+++ b/test/Sema/statements.c
@@ -33,3 +33,11 @@ void *test10() {
bar:
return &&bar; // expected-warning {{returning address of label, which is local}}
}
+
+// PR6034
+void test11(int bit) {
+ switch (bit)
+ switch (env->fpscr) // expected-error {{use of undeclared identifier 'env'}}
+ {
+ }
+}
OpenPOWER on IntegriCloud