xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGenCXX/pragma-pack-3.cpp (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1*0a6a1f1dSLionel Sambuc // RUN: %clang_cc1 %s -triple=i686-apple-darwin10 -emit-llvm -o - | FileCheck %s
2*0a6a1f1dSLionel Sambuc 
3*0a6a1f1dSLionel Sambuc struct Base {
4*0a6a1f1dSLionel Sambuc   char a;
5*0a6a1f1dSLionel Sambuc };
6*0a6a1f1dSLionel Sambuc 
7*0a6a1f1dSLionel Sambuc struct Derived_1 : virtual Base
8*0a6a1f1dSLionel Sambuc {
9*0a6a1f1dSLionel Sambuc   char b;
10*0a6a1f1dSLionel Sambuc };
11*0a6a1f1dSLionel Sambuc 
12*0a6a1f1dSLionel Sambuc #pragma pack(1)
13*0a6a1f1dSLionel Sambuc struct Derived_2 : Derived_1 {
14*0a6a1f1dSLionel Sambuc   // CHECK: %struct.Derived_2 = type { %struct.Derived_1.base, %struct.Base }
15*0a6a1f1dSLionel Sambuc   // CHECK: %struct.Derived_1.base = type <{ i32 (...)**, i8 }>
16*0a6a1f1dSLionel Sambuc };
17*0a6a1f1dSLionel Sambuc 
18*0a6a1f1dSLionel Sambuc Derived_2 x;
19