repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git]
/
clang
/
test
/
FixIt
/
property-access-fixit.m
blob
c0c1c4b0e279ad3d720347dd3d62590c51ad40ac
1
// RUN: cp %s %t
2
// RUN: %clang_cc1 -x objective-c -fixit %t
3
// RUN: %clang_cc1 -x objective-c -Werror %t
4
//rdar://17911746
5
6
@class BridgeFormatter;
7
8
@interface NSObject
9
+ (id)new;
10
@end
11
12
@interface X : NSObject
13
@property int x;
14
@property int Y;
15
@property(assign, readwrite, getter=formatter, setter=setFormatter:) BridgeFormatter* cppFormatter;
16
@end
17
18
@implementation X
19
- (void) endit
20
{
21
self.formatter = 0;
22
}
23
@end
24
25
int main(void)
26
{
27
X *obj = [X new];
28
obj.X = 3;
29
obj.y = 4;
30
return obj.x + obj.Y;
31
}