Home | History | Annotate | Download | only in SemaObjC
      1 // RUN: %clang_cc1  -fsyntax-only -verify -Wno-objc-root-class %s
      2 
      3 @interface MyObject {
      4     int _foo;
      5 }
      6 @end
      7 
      8 @interface MyObject(whatever)
      9 @property (assign) int foo;
     10 @end
     11 
     12 @interface MyObject()
     13 @property (assign) int foo;
     14 @end
     15 
     16 @implementation MyObject
     17 @synthesize foo = _foo;
     18 @end
     19 
     20 // rdar://10666594
     21 @interface MPMediaItem
     22 @end
     23 
     24 @class MPMediaItem;
     25 
     26 @interface MPMediaItem ()
     27 @property (nonatomic, readonly) id title;
     28 @end
     29 
     30 @interface PodcastEpisodesViewController
     31 @end
     32 
     33 @implementation PodcastEpisodesViewController
     34 - (id) Meth {
     35     MPMediaItem *episode;
     36     return episode.title;
     37 }
     38 @end
     39