working on the previous fix.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69742
91177308-0d34-0410-b5e6-
96231b3b80d8
CurFunctionNeedsScopeChecking = CurBlock->SavedFunctionNeedsScopeChecking;
// Pop off CurBlock, handle nested blocks.
+ PopDeclContext();
CurBlock = CurBlock->PrevBlockInfo;
-
// FIXME: Delete the ParmVarDecl objects as well???
}
^{ break; }(); // expected-error {{'break' statement not in loop or switch statement}}
}
+
+void (^test12f)(void);
+void test12() {
+ test12f = ^test12f; // expected-error {{type name requires a specifier or qualifier}} expected-error {{expected expression}}
+}
+
+
// rdar://6808730
void *test13 = ^{
int X = 32;
};
};
}
-
-void (^test12f)(void);
-void test12() {
- test12f = ^test12f; // expected-error {{type name requires a specifier or qualifier}} expected-error {{expected expression}}
-}
-