Author: Fangrui Song
Date: 2021-03-20T11:06:44-07:00
New Revision: e92faa77b4b7e425fc29574c0273b3904ee2b0a6

URL: 
https://github.com/llvm/llvm-project/commit/e92faa77b4b7e425fc29574c0273b3904ee2b0a6
DIFF: 
https://github.com/llvm/llvm-project/commit/e92faa77b4b7e425fc29574c0273b3904ee2b0a6.diff

LOG: [test] Fix Driver/gcc-toolchain.cpp if CLANG_DEFAULT_CXX_STDLIB is libc++

Added: 
    

Modified: 
    clang/test/Driver/gcc-toolchain.cpp

Removed: 
    


################################################################################
diff  --git a/clang/test/Driver/gcc-toolchain.cpp 
b/clang/test/Driver/gcc-toolchain.cpp
index 03a7991d6c70..8bb391f19eac 100644
--- a/clang/test/Driver/gcc-toolchain.cpp
+++ b/clang/test/Driver/gcc-toolchain.cpp
@@ -1,12 +1,12 @@
 // Test that gcc-toolchain option is working correctly
 //
-// RUN: %clangxx -no-canonical-prefixes %s -### -o %t 2>&1 \
-// RUN:   --target=x86_64-linux-gnu 
--gcc-toolchain=%S/Inputs/ubuntu_14.04_multiarch_tree/usr | \
+// RUN: %clangxx -no-canonical-prefixes %s -### -o %t 
--target=x86_64-linux-gnu \
+// RUN:   --gcc-toolchain=%S/Inputs/ubuntu_14.04_multiarch_tree/usr 
-stdlib=libstdc++ 2>&1 | \
 // RUN:   FileCheck %s
 //
 // Additionally check that the legacy spelling of the flag works.
-// RUN: %clangxx -no-canonical-prefixes %s -### -o %t 2>&1 \
-// RUN:   --target=x86_64-linux-gnu -gcc-toolchain 
%S/Inputs/ubuntu_14.04_multiarch_tree/usr | \
+// RUN: %clangxx -no-canonical-prefixes %s -### -o %t 
--target=x86_64-linux-gnu \
+// RUN:   --gcc-toolchain=%S/Inputs/ubuntu_14.04_multiarch_tree/usr 
-stdlib=libstdc++ 2>&1 | \
 // RUN:   FileCheck %s
 //
 // Test for header search toolchain detection.


        
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to