Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeGen / arc / struct-align.c
blobe509a49759427889a1f028e09289e7dcd36d1f9f
1 // RUN: %clang_cc1 -triple arc-unknown-unknown %s -emit-llvm -o - \
2 // RUN: | FileCheck %s
4 // 64-bit fields need only be 32-bit aligned for arc.
6 typedef struct {
7 int aa;
8 double bb;
9 } s1;
11 // CHECK: define{{.*}} i32 @f1
12 // CHECK: ret i32 12
13 int f1(void) {
14 return sizeof(s1);
17 typedef struct {
18 int aa;
19 long long bb;
20 } s2;
21 // CHECK: define{{.*}} i32 @f2
22 // CHECK: ret i32 12
23 int f2(void) {
24 return sizeof(s2);