[clang][lex] NFCI: Use DirectoryEntryRef in ModuleMap::inferFrameworkModule()
[llvm-project.git] / clang / test / Layout / ms-x86-misalignedarray.cpp
blob189ba4d2577457935e0ce4004a6b5548b7398855
1 // RUN: %clang_cc1 -fno-rtti -triple i686-pc-win32 -fsyntax-only -verify %s
2 // RUN: %clang_cc1 -fno-rtti -emit-llvm-only -triple x86_64-pc-win32 -fdump-record-layouts -fsyntax-only %s 2>/dev/null \
3 // RUN: | FileCheck %s -check-prefix CHECK-X64
5 struct T0 { char c; };
6 struct T2 : virtual T0 { };
7 struct T3 { T2 a[1]; char c; };
9 #ifdef _ILP32
10 // expected-error@-3 {{size of array element}}
11 #endif
13 // CHECK-X64: *** Dumping AST Record Layout
14 // CHECK-X64: *** Dumping AST Record Layout
15 // CHECK-X64: *** Dumping AST Record Layout
16 // CHECK-X64-NEXT: 0 | struct T3
17 // CHECK-X64-NEXT: 0 | T2[1] a
18 // CHECK-X64-NEXT: 16 | char c
19 // CHECK-X64-NEXT: | [sizeof=24, align=8
20 // CHECK-X64-NEXT: | nvsize=24, nvalign=8]
22 int a[sizeof(T3)];