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