1 // RUN: %clang_cc1 %std_cxx98-14 -w -triple=x86_64-pc-win32 -fms-compatibility -fdump-record-layouts-simple -foverride-record-layout=%S/Inputs/override-bit-field-layout.layout %s | FileCheck %s --check-prefixes=CHECK,PRE17
2 // RUN: %clang_cc1 -std=c++17 -w -triple=x86_64-pc-win32 -fms-compatibility -fdump-record-layouts-simple -foverride-record-layout=%S/Inputs/override-bit-field-layout.layout %s | FileCheck %s --check-prefixes=CHECK,CXX17
3 // RUN: %clang_cc1 %std_cxx20- -w -triple=x86_64-pc-win32 -fms-compatibility -fdump-record-layouts-simple -foverride-record-layout=%S/Inputs/override-bit-field-layout.layout %s | FileCheck %s --check-prefixes=CHECK,CXX20
5 // PRE17: Type: struct S1
6 // PRE17: FieldOffsets: [0, 11]
12 // CHECK: Type: struct S2
13 // CHECK: FieldOffsets: [64]
15 virtual ~S2() = default;
19 // CXX17: Type: struct S1
20 // CXX17: FieldOffsets: [0, 11]
21 // CXX20: Type: struct S1
22 // CXX20: FieldOffsets: [0, 3]
24 // CHECK: Type: struct S3
26 // CHECK: FieldOffsets: [0, 1]
32 // CHECK: Type: struct S4
33 // CHECK: FieldOffsets: [32]