blob: 63e0b9dec32947547a00b4564b6a1f7684507db7 [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 -fsyntax-only -verify %s
Fariborz Jahanian4b1e2752009-01-07 21:01:41 +00002
Douglas Gregor67dd1d42010-01-07 00:17:44 +00003@interface _Child // expected-note{{'_Child' declared here}}
Fariborz Jahanian4b1e2752009-01-07 21:01:41 +00004+ (int) flashCache;
5@end
6
Douglas Gregorf06cdae2010-01-03 18:01:57 +00007@interface Child (Categ) // expected-error {{cannot find interface declaration for 'Child'; did you mean '_Child'?}}
Fariborz Jahanian4b1e2752009-01-07 21:01:41 +00008+ (int) flushCache2;
9@end
10
Douglas Gregorf06cdae2010-01-03 18:01:57 +000011@implementation OtherChild (Categ) // expected-error {{cannot find interface declaration for 'OtherChild'}}
Fariborz Jahanian4b1e2752009-01-07 21:01:41 +000012+ (int) flushCache2 { [super flashCache]; } // expected-error {{no @interface declaration found in class messaging of 'flushCache2'}}
13@end