Home | History | Annotate | Download | only in SemaObjC
      1 // RUN: %clang_cc1 -fsyntax-only -verify %s
      2 // rdar://8528170
      3 
      4 @interface NSObject @end
      5 
      6 @protocol MyProtocol
      7 - (int) level;
      8 - (void) setLevel:(int)inLevel;
      9 @end
     10 
     11 @interface MyClass : NSObject <MyProtocol>
     12 @end
     13 
     14 int main ()
     15 {
     16     id<MyProtocol> c;
     17     c.level = 10;
     18     return 0;
     19 }
     20