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
This commit is contained in:
Rafael Espindola 2014-07-29 17:27:07 +00:00
parent 34fa69757f
commit 800b4d1157

View File

@ -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