xref: /minix3/external/bsd/llvm/dist/clang/test/PCH/selector-warning.m (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc// RUN: %clang_cc1 -x objective-c -emit-pch -o %t.h.pch %S/selector-warning.h
2*f4a2713aSLionel Sambuc// RUN: %clang_cc1 -include-pch %t.h.pch %s
3*f4a2713aSLionel Sambuc
4*f4a2713aSLionel Sambuc@interface Bar
5*f4a2713aSLionel Sambuc+ (void) clNotOk;
6*f4a2713aSLionel Sambuc- (void) instNotOk;
7*f4a2713aSLionel Sambuc+ (void) cl1;
8*f4a2713aSLionel Sambuc@end
9*f4a2713aSLionel Sambuc
10*f4a2713aSLionel Sambuc@implementation Bar
11*f4a2713aSLionel Sambuc- (void) bar {}
12*f4a2713aSLionel Sambuc+ (void) cl1 {}
13*f4a2713aSLionel Sambuc+ (void) cl2 {}
14*f4a2713aSLionel Sambuc@end
15*f4a2713aSLionel Sambuc
16*f4a2713aSLionel Sambuc@implementation Bar(CAT)
17*f4a2713aSLionel Sambuc- (void) b1ar {}
18*f4a2713aSLionel Sambuc@end
19*f4a2713aSLionel Sambuc
20