1// RUN: %clang_cc1 -triple i686-windows-itanium -emit-llvm -o - %s | FileCheck %s
2
3struct f1 {
4  float f;
5};
6
7struct f1 return_f1(void) { while (1); }
8
9// CHECK: define i32 @return_f1()
10
11void receive_f1(struct f1 a0) { }
12
13// CHECK: define void @receive_f1(%struct.f1* byval align 4 %a0)
14
15struct f2 {
16  float f;
17  float g;
18};
19
20struct f2 return_f2(void) { while (1); }
21
22// CHECK: define i64 @return_f2()
23
24void receive_f2(struct f2 a0) { }
25
26// CHECK: define void @receive_f2(%struct.f2* byval align 4 %a0)
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 void @return_f4(%struct.f4* noalias sret %agg.result)
38
39void receive_f4(struct f4 a0) { }
40
41// CHECK: define void @receive_f4(%struct.f4* byval align 4 %a0)
42
43