blob: bf4f6430bae065096b05790db0b9433dc237de3e [file] [log] [blame]
Patrick Beardacfbe9e2012-04-06 18:12:22 +00001// RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s
Andy Gibbsc6e68da2012-10-19 12:44:48 +00002// expected-no-diagnostics
Fariborz Jahanian38a5c962009-04-02 18:44:20 +00003
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
Fariborz Jahanian4f8cb1e2012-01-12 00:18:35 +000020
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