brintos

brintos / llvm-project-archived public Read only

0
0
Text · 293 B · 55bde99 Raw
17 lines · plain
1// RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s2 3// PR94954struct NonPOD { NonPOD(); ~NonPOD(); };5 6@interface A7@end8 9@implementation A10- (void)method:(bool)b {11  NonPOD np;12  if (b) {13    goto undeclared; // expected-error{{use of undeclared label 'undeclared'}}14  }15}16@end17