19 lines · cpp
1// RUN: %clang_cc1 -triple x86_64-apple-macosx10.7.2 %s -emit-llvm -o - | FileCheck %s2 3struct FOO {4 unsigned int x;5};6 7#pragma pack(push, 2)8 9// CHECK: %struct.BAR = type <{ %struct.FOO, i8, i8 }>10struct BAR : FOO {11 char y;12};13 14#pragma pack(pop)15 16BAR f(BAR x) {17 return x;18}19