summaryrefslogtreecommitdiffstats
path: root/test/SemaObjC/undef-class-messagin-error.m
blob: d8e50a0acd22bb352ce521f90bb637f3eb070439 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// RUN: clang -cc1 -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