Saleem Abdulrasool | ec5c624 | 2014-11-23 02:16:24 +0000 | [diff] [blame^] | 1 | // RUN: %clang_cc1 -triple i686-windows-itanium -emit-llvm -o - %s | FileCheck %s |
| 2 | |
| 3 | struct f1 { |
| 4 | float f; |
| 5 | }; |
| 6 | |
| 7 | struct f1 return_f1(void) { while (1); } |
| 8 | |
| 9 | // CHECK: define void @return_f1(%struct.f1* noalias sret %agg.result) |
| 10 | |
| 11 | void receive_f1(struct f1 a0) { } |
| 12 | |
| 13 | // CHECK: define void @receive_f1(%struct.f1* byval align 4 %a0) |
| 14 | |
| 15 | struct f2 { |
| 16 | float f; |
| 17 | float g; |
| 18 | }; |
| 19 | |
| 20 | struct f2 return_f2(void) { while (1); } |
| 21 | |
| 22 | // CHECK: define void @return_f2(%struct.f2* noalias sret %agg.result) |
| 23 | |
| 24 | void receive_f2(struct f2 a0) { } |
| 25 | |
| 26 | // CHECK: define void @receive_f2(%struct.f2* byval align 4 %a0) |
| 27 | |