]> granicus.if.org Git - clang/commitdiff
Make ast-print-record-decl.c pass on Windows after r332314
authorHans Wennborg <hans@hanshq.net>
Tue, 15 May 2018 10:19:24 +0000 (10:19 +0000)
committerHans Wennborg <hans@hanshq.net>
Tue, 15 May 2018 10:19:24 +0000 (10:19 +0000)
It was failing because on Windows, -ast-print prints
__single_inheritance(1) before T1.

Adding a triple is a stop-gap fix until it can be fixed properly.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@332335 91177308-0d34-0410-b5e6-96231b3b80d8

test/Misc/ast-print-record-decl.c

index c28c0aba791b5bd87b386d32aed8eb000a9b1efa..48e6378e1c9aa1c52e85dc9a214a23a64829a66c 100644 (file)
@@ -54,7 +54,7 @@
 //   RUN:        -DKW=struct -DBASES=' : B' -o - -xc++ %s \
 //   RUN: | FileCheck --check-prefixes=CHECK,LLVM %s
 //
-//   RUN: %clang_cc1 -verify -ast-print -DKW=struct -DBASES=' : B' -xc++ %s \
+//   RUN: %clang_cc1 -verify -triple x86_64-linux -ast-print -DKW=struct -DBASES=' : B' -xc++ %s \
 //   RUN: > %t.cpp
 //   RUN: FileCheck --check-prefixes=CHECK,PRINT,PRINT-CXX -DKW=struct \
 //   RUN:           -DBASES=' : B' %s --input-file %t.cpp
@@ -67,7 +67,7 @@
 //   RUN: %clang -target x86_64-linux -Xclang -verify -S -emit-llvm -o - %t.cpp \
 //   RUN: | FileCheck --check-prefixes=CHECK,LLVM %s
 //
-//   RUN: %clang_cc1 -verify -ast-print %t.cpp \
+//   RUN: %clang_cc1 -verify -triple x86_64-linux -ast-print %t.cpp \
 //   RUN: | FileCheck --check-prefixes=CHECK,PRINT,PRINT-CXX -DKW=struct \
 //   RUN:             -DBASES=' : B' %s