39 lines · plain
1// RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s2// expected-no-diagnostics3 4@interface MyObject {5 int _foo;6}7@end8 9@interface MyObject(whatever)10@property (assign) int foo;11@end12 13@interface MyObject()14@property (assign) int foo;15@end16 17@implementation MyObject18@synthesize foo = _foo;19@end20 21@interface MPMediaItem22@end23 24@class MPMediaItem;25 26@interface MPMediaItem ()27@property (nonatomic, readonly) id title;28@end29 30@interface PodcastEpisodesViewController31@end32 33@implementation PodcastEpisodesViewController34- (id) Meth {35 MPMediaItem *episode;36 return episode.title;37}38@end39