address PR6502 by downgrading the scope checker's address
of label error to a warning controllable with a -W flag.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97815 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/Sema/scope-check.c b/test/Sema/scope-check.c
index 7d293f2..1df0186 100644
--- a/test/Sema/scope-check.c
+++ b/test/Sema/scope-check.c
@@ -146,7 +146,7 @@
void *Ptrs[] = {
&&L2, // Ok.
- &&L3 // expected-error {{address taken of label in protected scope, jump to it would have unknown effect on scope}}
+ &&L3 // expected-warning {{address taken of label in protected scope, jump to it would have unknown effect on scope}}
};
}