summaryrefslogtreecommitdiff
path: root/clang/test/SemaObjC/ContClassPropertyLookup.m
blob: 06a0ffae588c9c882ca56c7e8dbc792cc959be9c (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// RUN: %clang_cc1  -fsyntax-only -verify -Wno-objc-root-class %s

@interface MyObject {
    int _foo;
}
@end

@interface MyObject(whatever)
@property (assign) int foo;
@end

@interface MyObject()
@property (assign) int foo;
@end

@implementation MyObject
@synthesize foo = _foo;
@end

// rdar://10666594
@interface MPMediaItem
@end

@class MPMediaItem;

@interface MPMediaItem ()
@property (nonatomic, readonly) id title;
@end

@interface PodcastEpisodesViewController
@end

@implementation PodcastEpisodesViewController
- (id) Meth {
    MPMediaItem *episode;
    return episode.title;
}
@end