浏览代码

[libc++] Add missing %link_flags to .sh.cpp test

Without the link flags, the test always fails on Linux. For some reason,
however, it works on Darwin -- which is why it wasn't caught at first.

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@366579 91177308-0d34-0410-b5e6-96231b3b80d8
Louis Dionne 6 年之前
父节点
当前提交
71a0cf47f9
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      test/libcxx/strings/basic.string/PR42676.sh.cpp

+ 1 - 1
test/libcxx/strings/basic.string/PR42676.sh.cpp

@@ -8,7 +8,7 @@
 
 
 // Regression test for PR42676.
 // Regression test for PR42676.
 
 
-// RUN: %cxx %flags %s -o %t.exe %compile_flags -D_LIBCPP_HIDE_FROM_ABI_PER_TU
+// RUN: %cxx %flags %s -o %t.exe %compile_flags %link_flags -D_LIBCPP_HIDE_FROM_ABI_PER_TU
 // RUN: %t.exe
 // RUN: %t.exe
 
 
 #include <memory>
 #include <memory>