blob: ec4bab6b47dc4b883b8b10dbb3f77708ce082cce [file] [log] [blame]
Saleem Abdulrasoolec5c6242014-11-23 02:16:24 +00001// 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 void @return_f1(%struct.f1* noalias sret %agg.result)
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 void @return_f2(%struct.f2* noalias sret %agg.result)
23
24void receive_f2(struct f2 a0) { }
25
26// CHECK: define void @receive_f2(%struct.f2* byval align 4 %a0)
27