summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/scope-check.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Sema/scope-check.c')
-rw-r--r--clang/test/Sema/scope-check.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/clang/test/Sema/scope-check.c b/clang/test/Sema/scope-check.c
index 1d1c5aa2f9b..59fd832dc63 100644
--- a/clang/test/Sema/scope-check.c
+++ b/clang/test/Sema/scope-check.c
@@ -164,8 +164,9 @@ L2:
return;
}
+
// TODO: When and if gotos are allowed in blocks, this should work.
-void test11(int n) {
+void test13(int n) {
void *P = ^{
goto L1; // expected-error {{goto not allowed in block literal}}
L1:
@@ -180,11 +181,3 @@ void test11(int n) {
};
}
-
-
-#if 0
-// in Sema::CheckVariableDeclaration
-// FIXME: This won't give the correct result for
-// int a[10][n];
-#endif
-
OpenPOWER on IntegriCloud