1 // RUN: %clang_cc1 -std=c++11 -fdebugger-support -fdebugger-cast-result-to-id -funknown-anytype -fsyntax-only -verify %s
3 extern __unknown_anytype test0a;
4 extern __unknown_anytype test1a();
5 extern __unknown_anytype test0b;
6 extern __unknown_anytype test1b();
7 extern __unknown_anytype test0c;
8 extern __unknown_anytype test1c();
9 extern __unknown_anytype test0d;
10 extern __unknown_anytype test1d();
11 extern __unknown_anytype test0d;
12 extern __unknown_anytype test1d();
17 namespace rdar9416370 {
19 if ([x foo]) {} // expected-error {{no known method '-foo'; cast the message send to the method's return type}}
24 @class NSString; // expected-note {{forward declaration of class here}}
25 namespace rdar10988847 {
27 id s = [NSString stringWithUTF8String:"foo"]; // expected-warning {{receiver 'NSString' is a forward class and corresponding @interface may not exist}}
31 namespace rdar13338107 {