clang/test/CodeGen/2007-05-07-PaddingElements.c
raw| 1 | // PR 1278 |
| 2 | // RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu %s -emit-llvm -o - | FileCheck %s |
| 3 | // RUN: %clang_cc1 -triple powerpc64-ibm-aix %s -emit-llvm -o - | FileCheck %s --check-prefix=AIX |
| 4 | |
| 5 | // CHECK: %struct.s = type { double, i32 } |
| 6 | // AIX: %struct.s = type { double, i32, [4 x i8] } |
| 7 | struct s { |
| 8 | double d1; |
| 9 | int s1; |
| 10 | }; |
| 11 | |
| 12 | struct s foo(void) { |
| 13 | struct s S = {1.1, 2}; |
| 14 | return S; |
| 15 | } |