[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / clang / test / SemaObjC / warn-messaging-id.mm
blob8112cfa3d52175f954c80259ea9cd0e46eb992f2
1 // RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class -Wobjc-messaging-id %s
3 @interface CallMeMaybe
5 - (void)doThing:(int)intThing;
7 @property int thing;
9 @end
11 template<typename T>
12 void instantiate(const T &x) {
13   [x setThing: 22]; // expected-warning {{messaging unqualified id}}
16 void fn() {
17   id myObject;
18   [myObject doThing: 10]; // expected-warning {{messaging unqualified id}}
19   [myObject setThing: 11]; // expected-warning {{messaging unqualified id}}
20   instantiate(myObject); // expected-note {{in instantiation}}