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
[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git]
/
clang
/
test
/
Parser
/
objc-class-property.m
blob
afb8a44fa22404249d86914e6a2b3decbc19e953
1
// RUN: %clang_cc1 -fsyntax-only -verify %s
2
// expected-no-diagnostics
3
4
@interface Root
5
-(id) alloc;
6
-(id) init;
7
@end
8
9
@interface A : Root {
10
int x;
11
int z;
12
}
13
@property int x;
14
@property int y;
15
@property int z;
16
@property(readonly) int ro, ro2;
17
@property (class) int c;
18
@end
19
20
@implementation A
21
@dynamic x;
22
@synthesize z;
23
@dynamic c;
24
@end
25
26
int test(void) {
27
A *a = [[A alloc] init];
28
return a.x;
29
}