1 // RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class -Wobjc-messaging-id %s
5 - (void)doThing:(int)intThing;
12 void instantiate(const T &x) {
13 [x setThing: 22]; // expected-warning {{messaging unqualified id}}
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}}