Use %link not %llvmgxx (which includes -c) to do the link.
authorDale Johannesen <dalej@apple.com>
Tue, 10 Jun 2008 18:01:54 +0000 (18:01 +0000)
committerDale Johannesen <dalej@apple.com>
Tue, 10 Jun 2008 18:01:54 +0000 (18:01 +0000)
The test still fails because an expected symbol is not
present, and I don't see why it should be.

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

test/FrontendC++/2006-11-30-NoCompileUnit.cpp

index c1fa9aed894fbe6af8167fcf7310eae828ba597e..c225eb782e3eed05a9e84dec90c32fe055368216 100644 (file)
@@ -3,7 +3,7 @@
 // RUN: %llvmgcc -S -O0 -g %s -o - | llvm-as | \
 // RUN:   llc --disable-fp-elim -o NoCompileUnit.s -f
 // RUN: %compile_c NoCompileUnit.s -o NoCompileUnit.o
-// RUN: %compile_cxx NoCompileUnit.o -o NoCompileUnit.exe
+// RUN: %link NoCompileUnit.o -o NoCompileUnit.exe
 // RUN: echo {break main\nrun\np NoCompileUnit::pubname} > %t2
 // RUN: gdb -q -batch -n -x %t2 NoCompileUnit.exe | \
 // RUN:   tee NoCompileUnit.out | not grep {"low == high"}