summaryrefslogtreecommitdiffstats
path: root/clang/test/Layout/ms-x86-empty-virtual-base.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2015-08-19 22:42:36 +0000
committerJohn McCall <rjmccall@apple.com>2015-08-19 22:42:36 +0000
commit0d461693b6c7944119d6384d3a38d6c675815317 (patch)
tree98fada608f180b92a79fa33a13e13d0038007d95 /clang/test/Layout/ms-x86-empty-virtual-base.cpp
parent10ac1f98faab6029201867e8c409de2f0200283c (diff)
downloadbcm5719-llvm-0d461693b6c7944119d6384d3a38d6c675815317.tar.gz
bcm5719-llvm-0d461693b6c7944119d6384d3a38d6c675815317.zip
Fix the layout of bitfields in ms_struct unions: their
alignment is ignored, and they always allocate a complete storage unit. Also, change the dumping of AST record layouts: use the more readable C++-style dumping even in C, include bitfield offset information in the dump, and don't print sizeof/alignof information for fields of record type, since we don't do so for bases or other kinds of field. rdar://22275433 llvm-svn: 245514
Diffstat (limited to 'clang/test/Layout/ms-x86-empty-virtual-base.cpp')
-rw-r--r--clang/test/Layout/ms-x86-empty-virtual-base.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/clang/test/Layout/ms-x86-empty-virtual-base.cpp b/clang/test/Layout/ms-x86-empty-virtual-base.cpp
index 2d0e55a01cb..b732415152f 100644
--- a/clang/test/Layout/ms-x86-empty-virtual-base.cpp
+++ b/clang/test/Layout/ms-x86-empty-virtual-base.cpp
@@ -53,8 +53,6 @@ struct B : virtual B0 {
// CHECK-NEXT: 0 | struct B
// CHECK-NEXT: 0 | (B vbtable pointer)
// CHECK-NEXT: 8 | struct B0 b0 (empty)
-// CHECK-NEXT: | [sizeof=8, align=8
-// CHECK-NEXT: | nvsize=0, nvalign=8]
// CHECK: 16 | int a
// CHECK-NEXT: 24 | struct B0 (virtual base) (empty)
// CHECK-NEXT: | [sizeof=24, align=8
@@ -63,8 +61,6 @@ struct B : virtual B0 {
// CHECK-X64-NEXT: 0 | struct B
// CHECK-X64-NEXT: 0 | (B vbtable pointer)
// CHECK-X64-NEXT: 8 | struct B0 b0 (empty)
-// CHECK-X64-NEXT: | [sizeof=8, align=8
-// CHECK-X64-NEXT: | nvsize=0, nvalign=8]
// CHECK-X64: 16 | int a
// CHECK-X64-NEXT: 24 | struct B0 (virtual base) (empty)
// CHECK-X64-NEXT: | [sizeof=24, align=8
OpenPOWER on IntegriCloud