blob: c8477f4cbdd32850fe869e22eec0e61eff0580cd [file] [log] [blame]
Stephen Hines651f13c2014-04-23 16:59:28 -07001// RUN: %clang_cc1 -fno-rtti -emit-llvm -triple=i686-pc-win32 -o - %s 2>/dev/null | FileCheck %s
2// RUN: %clang_cc1 -fno-rtti -emit-llvm -triple=x86_64-pc-win32 -o - %s 2>/dev/null | FileCheck %s -check-prefix CHECK-X64
Warren Hunt2d2f6c22013-11-14 22:34:59 +00003
4struct B { char a; };
5struct A : virtual B {} a;
6
7// The <> indicate that the pointer is packed, which is required to support
8// microsoft layout in 32 bit mode, but not 64 bit mode.
Stephen Hines651f13c2014-04-23 16:59:28 -07009// CHECK: %struct.A = type <{ i32*, %struct.B }>
10// CHECK-X64: %struct.A = type { i32*, %struct.B }