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