Home | History | Annotate | Download | only in SemaObjC
      1 // RUN: %clang_cc1 -funknown-anytype -fsyntax-only -fdebugger-support -fdebugger-cast-result-to-id -verify %s
      2 
      3 extern __unknown_anytype test0;
      4 extern __unknown_anytype test1();
      5 
      6 void test_unknown_anytype_receiver() {
      7   (void)(int)[[test0 unknownMethod] otherUnknownMethod];;
      8   (void)(id)[[test1() unknownMethod] otherUnknownMethod];
      9   id x = test0;
     10   id y = test1();
     11 }
     12 
     13 // rdar://10988847
     14 @class NSString; // expected-note {{forward declaration of class here}}
     15 
     16 void rdar10988847() {
     17   id s = [NSString stringWithUTF8String:"foo"]; // expected-warning {{receiver 'NSString' is a forward class and corresponding @interface may not exist}}
     18 }
     19