1 // RUN: %clang_cc1 -fsyntax-only -verify %s
7 int objc_lookUpClass(const char*);
9 void __raiseExc1(void) {
10 [objc_lookUpClass("NSString") retain]; // expected-warning {{receiver type 'int' is not 'id'}}
13 typedef const struct __CFString * CFStringRef;
18 [obj self]; // expected-warning {{receiver type 'CFStringRef' (aka 'const struct __CFString *') is not 'id'}} \\
19 expected-warning {{method '-self' not found}}