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