mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-14 03:29:57 +00:00
a0ff0c34a7
ActOnFinishFunctionBody/ActOnBlockStmtExpr. This way, we ensure that we diagnose undefined labels before the jump-scope checker gets run, since the jump-scope checker requires (as its invariant) that all of the GotoStmts be wired up correctly. Fixes PR9495. llvm-svn: 127738
17 lines
272 B
Plaintext
17 lines
272 B
Plaintext
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
|
|
|
// PR9495
|
|
struct NonPOD { NonPOD(); ~NonPOD(); };
|
|
|
|
@interface A
|
|
@end
|
|
|
|
@implementation A
|
|
- (void)method:(bool)b {
|
|
NonPOD np;
|
|
if (b) {
|
|
goto undeclared; // expected-error{{use of undeclared label 'undeclared'}}
|
|
}
|
|
}
|
|
@end
|