aboutsummaryrefslogtreecommitdiff
path: root/test/Sema/scope-check.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Sema/scope-check.c')
-rw-r--r--test/Sema/scope-check.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/Sema/scope-check.c b/test/Sema/scope-check.c
index 59d4d134a8..93120cdf94 100644
--- a/test/Sema/scope-check.c
+++ b/test/Sema/scope-check.c
@@ -47,11 +47,11 @@ int test6() {
}
void test7(int x) {
-foo:
- switch (x) { // expected-error {{illegal switch into protected scope}}
+foo: // FIXME: remove
+ switch (x) {
case 1: ;
int a[x]; // expected-note {{jump bypasses initialization of variable length array}}
- case 2:
+ case 2: // expected-error {{illegal switch case into protected scope}}
a[1] = 2;
break;
}