blob: c62a33f2d1622d6768dd8e8508299c1905f3a0fb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fobjc-gc -emit-llvm -o - %s | FileCheck %s
struct Coerce {
id a;
};
struct Coerce coerce_func(void);
// CHECK: define void @Coerce_test()
void Coerce_test(void) {
struct Coerce c;
// CHECK: call i64 @coerce_func
// CHECK: call i8* @objc_memmove_collectable(
c = coerce_func();
}
struct Indirect {
id a;
int b[10];
};
struct Indirect indirect_func(void);
// CHECK: define void @Indirect_test()
void Indirect_test(void) {
struct Indirect i;
// CHECK: call void @indirect_func(%struct.Indirect* sret
// CHECK: call i8* @objc_memmove_collectable(
i = indirect_func();
}
|