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