StmtPrinter: factor out arg printing code to PrintCallArgs
[clang.git] / test / CodeGenObjC / x86_64-struct-return-gc.m
blob8022d5903ecf54f03c7081be4c06f258fbc531a4
1 // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fobjc-gc -emit-llvm -o - %s | FileCheck %s
2 struct Coerce {
3   id a;
4 };
6 struct Coerce coerce_func(void);
8 // CHECK: define void @Coerce_test()
9 void Coerce_test(void) {
10   struct Coerce c;
11   
12   // CHECK: call i8* @coerce_func
13   // CHECK: call i8* @objc_memmove_collectable(
14   c = coerce_func();
17 struct Indirect {
18   id a;
19   int b[10];
22 struct Indirect indirect_func(void);
24 // CHECK: define void @Indirect_test()
25 void Indirect_test(void) {
26   struct Indirect i;
27   
28   // CHECK: call void @indirect_func(%struct.Indirect* sret
29   // CHECK: call i8* @objc_memmove_collectable(
30   i = indirect_func();