1 // RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s -Wselector -include %S/Inputs/chain-selectors1.h -include %S/Inputs/chain-selectors2.h
3 // RUN: %clang_cc1 -x objective-c -Wno-objc-root-class -emit-pch -o %t1 %S/Inputs/chain-selectors1.h
4 // RUN: %clang_cc1 -x objective-c -Wno-objc-root-class -emit-pch -o %t2 %S/Inputs/chain-selectors2.h -include-pch %t1
5 // RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s -Wselector -include-pch %t2
11 -(void)h: (int)p1 foo: (int)p2 {}
16 [a nothing]; // expected-warning {{method '-nothing' not found}}
18 // FIXME: Can't verify notes in headers
21 (void)@selector(x); // expected-warning {{no method with selector 'x' is implemented in this translation unit}}
22 (void)@selector(y); // expected-warning {{no method with selector 'y' is implemented in this translation unit}}
23 (void)@selector(e); // expected-warning {{no method with selector 'e' is implemented in this translation unit}}
26 @implementation X (Blah)
31 - (void)blah_method { }
34 @implementation X (Blarg)
39 - (void)blarg_method { }