[ELF] Reorder SectionBase/InputSectionBase members
[llvm-project.git] / clang / test / CodeGenCXX / microsoft-abi-alignment-fail.cpp
blobd71eb96a2e3371386e66bb1af2627119064f9dbe
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
4 struct B { char a; };
5 struct A : virtual B {} a;
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.
9 // CHECK: %struct.A = type <{ ptr, %struct.B }>
10 // CHECK-X64: %struct.A = type { ptr, %struct.B }