From 805d759664ff7dc80c01bd5d5f5652cba34ef7a5 Mon Sep 17 00:00:00 2001 From: David Majnemer Date: Sat, 15 Feb 2014 01:09:56 +0000 Subject: [PATCH] MS ABI: Fix some layout tests Some lines intended to be used for testing x86_64 ABI compatibility were not firing because lines were annotated with the wrong FileCheck prefix: X64 vs C64 llvm-svn: 201453 --- clang/test/Layout/ms-x86-pack-and-align.cpp | 25 +++++++++------------ 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/clang/test/Layout/ms-x86-pack-and-align.cpp b/clang/test/Layout/ms-x86-pack-and-align.cpp index a9685f12e7c8..27de729074d9 100644 --- a/clang/test/Layout/ms-x86-pack-and-align.cpp +++ b/clang/test/Layout/ms-x86-pack-and-align.cpp @@ -171,17 +171,17 @@ struct CA2 : public CA1, public CA0 { // CHECK-NEXT: 9 | struct CA0 (virtual base) (empty) // CHECK-NEXT: | [sizeof=9, align=1 // CHECK-NEXT: | nvsize=9, nvalign=1] -// CHECK-C64: *** Dumping AST Record Layout -// CHECK-C64: *** Dumping AST Record Layout -// CHECK-C64: *** Dumping AST Record Layout -// CHECK-C64-NEXT: 0 | struct CA2 -// CHECK-C64-NEXT: 0 | (CA2 vftable pointer) -// CHECK-C64-NEXT: 8 | struct CA1 (base) -// CHECK-C64-NEXT: 8 | (CA1 vbtable pointer) -// CHECK-C64-NEXT: 17 | struct CA0 (base) (empty) -// CHECK-C64-NEXT: 17 | struct CA0 (virtual base) (empty) -// CHECK-C64-NEXT: | [sizeof=17, align=1 -// CHECK-C64-NEXT: | nvsize=17, nvalign=1] +// CHECK-X64: *** Dumping AST Record Layout +// CHECK-X64: *** Dumping AST Record Layout +// CHECK-X64: *** Dumping AST Record Layout +// CHECK-X64-NEXT: 0 | struct CA2 +// CHECK-X64-NEXT: 0 | (CA2 vftable pointer) +// CHECK-X64-NEXT: 8 | struct CA1 (base) +// CHECK-X64-NEXT: 8 | (CA1 vbtable pointer) +// CHECK-X64-NEXT: 17 | struct CA0 (base) (empty) +// CHECK-X64-NEXT: 17 | struct CA0 (virtual base) (empty) +// CHECK-X64-NEXT: | [sizeof=17, align=1 +// CHECK-X64-NEXT: | nvsize=17, nvalign=1] #pragma pack(16) struct YA { @@ -193,9 +193,6 @@ struct YA { // CHECK-NEXT: | [sizeof=32, align=32 // CHECK-NEXT: | nvsize=32, nvalign=32] // CHECK-X64: *** Dumping AST Record Layout -// CHECK-X64: *** Dumping AST Record Layout -// CHECK-X64: *** Dumping AST Record Layout -// CHECK-X64: *** Dumping AST Record Layout // CHECK-X64-NEXT: 0 | struct YA (empty) // CHECK-X64-NEXT: 0 | char // CHECK-X64-NEXT: | [sizeof=32, align=32