freebsd-dev/test/SemaObjC/undef-class-messagin-error.m

14 lines
523 B
Mathematica
Raw Normal View History

2010-01-01 10:34:51 +00:00
// RUN: %clang_cc1 -fsyntax-only -verify %s
2009-06-02 17:58:47 +00:00
2010-01-15 15:39:40 +00:00
@interface _Child // expected-note{{'_Child' declared here}}
2009-06-02 17:58:47 +00:00
+ (int) flashCache;
@end
2010-01-15 15:39:40 +00:00
@interface Child (Categ) // expected-error {{cannot find interface declaration for 'Child'; did you mean '_Child'?}}
2009-06-02 17:58:47 +00:00
+ (int) flushCache2;
@end
2010-01-15 15:39:40 +00:00
@implementation OtherChild (Categ) // expected-error {{cannot find interface declaration for 'OtherChild'}}
2009-06-02 17:58:47 +00:00
+ (int) flushCache2 { [super flashCache]; } // expected-error {{no @interface declaration found in class messaging of 'flushCache2'}}
@end