blob: 06a0ffae588c9c882ca56c7e8dbc792cc959be9c [file] [log] [blame]
Patrick Beardb2f68202012-04-06 18:12:22 +00001// RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s
Fariborz Jahaniand09a4562009-04-02 18:44:20 +00002
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
Fariborz Jahanian3306f962012-01-12 00:18:35 +000019
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