Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeGenCXX / pragma-pack-2.cpp
blob375495bb48411619400944a4a8ca5ad4c9f442e8
1 // RUN: %clang_cc1 -triple x86_64-apple-macosx10.7.2 %s -emit-llvm -o - | FileCheck %s
3 struct FOO {
4 unsigned int x;
5 };
7 #pragma pack(push, 2)
9 // CHECK: %struct.BAR = type <{ %struct.FOO, i8, i8 }>
10 struct BAR : FOO {
11 char y;
14 #pragma pack(pop)
16 BAR f(BAR x) {
17 return x;