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
[Reland][Runtimes] Merge 'compile_commands.json' files from runtimes build (#116303)
[llvm-project.git]
/
clang
/
test
/
FixIt
/
property-access-fixit.m
blob
4765a1b5dd3b3b62f405d3d4c0d57e0667e2a5ea
1
// RUN: cp %s %t
2
// RUN: %clang_cc1 -x objective-c -fixit %t
3
// RUN: %clang_cc1 -x objective-c -Werror %t
4
5
@class BridgeFormatter;
6
7
@interface NSObject
8
+ (id)new;
9
@end
10
11
@interface X : NSObject
12
@property int x;
13
@property int Y;
14
@property(assign, readwrite, getter=formatter, setter=setFormatter:) BridgeFormatter* cppFormatter;
15
@end
16
17
@implementation X
18
- (void) endit
19
{
20
self.formatter = 0;
21
}
22
@end
23
24
int main(void)
25
{
26
X *obj = [X new];
27
obj.X = 3;
28
obj.y = 4;
29
return obj.x + obj.Y;
30
}