Emit warning on indirect goto that potentially violates
scope instead of error, PR6517
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97826 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/Sema/scope-check.c b/test/Sema/scope-check.c
index 1df0186..6f86402 100644
--- a/test/Sema/scope-check.c
+++ b/test/Sema/scope-check.c
@@ -140,7 +140,7 @@
L3:
L4:
- goto *P; // expected-error {{illegal indirect goto in protected scope, unknown effect on scopes}}
+ goto *P; // expected-warning {{illegal indirect goto in protected scope, unknown effect on scopes}}
goto L3; // ok
goto L4; // ok