26 lines
325 B
Plaintext
26 lines
325 B
Plaintext
|
// RUN: %clang_cc1 %s -triple=x86_64-apple-darwin10 -emit-llvm -o - | FileCheck %s
|
||
|
|
||
|
struct A { ~A(); };
|
||
|
|
||
|
@interface B {
|
||
|
A a;
|
||
|
}
|
||
|
|
||
|
- (const A&)getA;
|
||
|
@end
|
||
|
|
||
|
@implementation B
|
||
|
|
||
|
- (const A&)getA {
|
||
|
return a;
|
||
|
}
|
||
|
|
||
|
@end
|
||
|
|
||
|
// CHECK: define void @_Z1fP1B
|
||
|
// CHECK: objc_msgSend to
|
||
|
// CHECK: ret void
|
||
|
void f(B* b) {
|
||
|
(void)[b getA];
|
||
|
}
|