Use %link not %llvmgxx (which includes -c) to do the link.
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
diff --git a/test/FrontendC++/2006-11-30-NoCompileUnit.cpp b/test/FrontendC++/2006-11-30-NoCompileUnit.cpp
index c1fa9ae..c225eb7 100644
--- a/test/FrontendC++/2006-11-30-NoCompileUnit.cpp
+++ b/test/FrontendC++/2006-11-30-NoCompileUnit.cpp
@@ -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"}