hanchenye-llvm-project/clang/test/SemaObjC/undef-class-messagin-error.m

14 lines
441 B
Objective-C

// RUN: clang -fsyntax-only -verify %s
@interface _Child
+ (int) flashCache;
@end
@interface Child (Categ) // expected-error {{cannot find interface declaration for 'Child'}}
+ (int) flushCache2;
@end
@implementation Child (Categ) // expected-error {{cannot find interface declaration for 'Child'}}
+ (int) flushCache2 { [super flashCache]; } // expected-error {{no @interface declaration found in class messaging of 'flushCache2'}}
@end