Hans Wennborg | c9bd88e | 2014-01-14 19:35:09 +0000 | [diff] [blame] | 1 | // 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 Hunt | d840e40 | 2013-11-14 22:34:59 +0000 | [diff] [blame] | 3 | |
| 4 | struct B { char a; }; |
| 5 | struct 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. |
David Majnemer | b100410 | 2014-03-02 18:46:05 +0000 | [diff] [blame^] | 9 | // CHECK: %struct.A = type <{ i32*, %struct.B }> |
| 10 | // CHECK-X64: %struct.A = type { i32*, %struct.B } |