diff options
| -rw-r--r-- | llvm/test/tools/gold/emit-llvm.ll | 18 | 
1 files changed, 18 insertions, 0 deletions
diff --git a/llvm/test/tools/gold/emit-llvm.ll b/llvm/test/tools/gold/emit-llvm.ll new file mode 100644 index 00000000000..ebf00036541 --- /dev/null +++ b/llvm/test/tools/gold/emit-llvm.ll @@ -0,0 +1,18 @@ +; RUN: llvm-as %s -o %t.o + +; RUN: ld -plugin %llvmshlibdir/LLVMgold.so \ +; RUN:    --plugin-opt=emit-llvm \ +; RUN:    -shared %t.o -o %t2.o +; RUN: llvm-dis %t2.o -o /dev/null + +; RUN: ld -plugin %llvmshlibdir/LLVMgold.so \ +; RUN:    --plugin-opt=also-emit-llvm \ +; RUN:    -shared %t.o -o %t3.o +; RUN: llvm-dis %t3.o.bc -o /dev/null + +; RUN: ld -plugin %llvmshlibdir/LLVMgold.so \ +; RUN:    --plugin-opt=also-emit-llvm=%t4 \ +; RUN:    -shared %t.o -o %t3.o +; RUN: llvm-dis %t4 -o /dev/null + +target triple = "x86_64-unknown-linux-gnu"  | 

