43 lines · c
1// RUN: %clang_cc1 -triple i686-windows-itanium -emit-llvm -o - %s | FileCheck %s2 3struct f1 {4 float f;5};6 7struct f1 return_f1(void) { while (1); }8 9// CHECK: define dso_local i32 @return_f1()10 11void receive_f1(struct f1 a0) { }12 13// CHECK: define dso_local void @receive_f1(float %a0.0)14 15struct f2 {16 float f;17 float g;18};19 20struct f2 return_f2(void) { while (1); }21 22// CHECK: define dso_local i64 @return_f2()23 24void receive_f2(struct f2 a0) { }25 26// CHECK: define dso_local void @receive_f2(float %a0.0, float %a0.1)27 28struct f4 {29 float f;30 float g;31 float h;32 float i;33};34 35struct f4 return_f4(void) { while (1); }36 37// CHECK: define dso_local void @return_f4(ptr dead_on_unwind noalias writable sret(%struct.f4) align 4 %agg.result)38 39void receive_f4(struct f4 a0) { }40 41// CHECK: define dso_local void @receive_f4(float %a0.0, float %a0.1, float %a0.2, float %a0.3)42 43