summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMikhail Glushenkov <foldr@codedgers.com>2008-05-06 18:13:00 +0000
committerMikhail Glushenkov <foldr@codedgers.com>2008-05-06 18:13:00 +0000
commit978d498e401c292b6be5248abaf828b66739bcb8 (patch)
tree3486bcca95b0057240108c540cde0af192a59c81 /test
parent895820da243713e78ff3ee66ba54c4db4ee121ac (diff)
downloadllvm-978d498e401c292b6be5248abaf828b66739bcb8.tar.gz
llvm-978d498e401c292b6be5248abaf828b66739bcb8.tar.bz2
llvm-978d498e401c292b6be5248abaf828b66739bcb8.tar.xz
Add a --linker command-line option, make all tests pass.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50755 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/LLVMC/false.c4
-rw-r--r--test/LLVMC/hello.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/test/LLVMC/false.c b/test/LLVMC/false.c
index 80e9e03b54..8319036c36 100644
--- a/test/LLVMC/false.c
+++ b/test/LLVMC/false.c
@@ -1,5 +1,5 @@
// Test that we can compile .c files as C++ and vice versa
-// RUN: llvmc2 -x c++ %s -x c %p/false.cpp -x lisp -x whatnot -x none %p/false2.cpp -o %t
+// RUN: llvmc2 --linker=c++ -x c++ %s -x c %p/false.cpp -x lisp -x whatnot -x none %p/false2.cpp -o %t
// RUN: ./%t | grep hello
#include <iostream>
@@ -10,5 +10,5 @@ extern std::string test2();
int main() {
std::cout << "h";
test();
- std::cout << test2() << '\n';
+ std::cout << test2() << '\n';
}
diff --git a/test/LLVMC/hello.cpp b/test/LLVMC/hello.cpp
index a3148c3c16..4b45ea945e 100644
--- a/test/LLVMC/hello.cpp
+++ b/test/LLVMC/hello.cpp
@@ -1,5 +1,5 @@
// Test that we can compile C++ code.
-// RUN: llvmc2 %s -o %t
+// RUN: llvmc2 --linker=c++ %s -o %t
// RUN: ./%t | grep hello
#include <iostream>