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
/
CodeGenObjCXX
/
property-derived-to-base-conv.mm
blob
dc31003a2d4312b348e4cccd9b313eeb437036df
1
// RUN: %clang_cc1 -fobjc-gc -triple x86_64-apple-darwin10 -fobjc-runtime=macosx-fragile-10.5 -emit-llvm -o - %s
2
3
struct A {
4
int member;
5
void foo();
6
A *operator->();
7
};
8
struct B : A { };
9
10
@interface BInt {
11
@private
12
B *b;
13
}
14
- (B)value;
15
- (void)setValue : (B) arg;
16
@property B value;
17
@end
18
19
void g(BInt *bint) {
20
bint.value.foo();
21
bint.value->member = 17;
22
int x = bint.value.member;
23
}
24