From: Rafael Espindola Date: Tue, 29 Jul 2014 17:27:07 +0000 (+0000) Subject: Add a test for the mtriple plugin option. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=800b4d1157a974d1dd2ba93d1769017808bdb0e2;p=llvm Add a test for the mtriple plugin option. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214186 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/tools/gold/mtriple.ll b/test/tools/gold/mtriple.ll new file mode 100644 index 00000000000..61a0191efc9 --- /dev/null +++ b/test/tools/gold/mtriple.ll @@ -0,0 +1,7 @@ +; RUN: llvm-as %s -o %t.o +; RUN: ld -plugin %llvmshlibdir/LLVMgold.so -m elf32ppc \ +; RUN: -plugin-opt=mtriple=powerpc-linux-gnu \ +; RUN: -shared %t.o -o %t2.o +; RUN: llvm-readobj %t2.o | FileCheck %s + +; CHECK: Format: ELF32-ppc