Add a test for the mtriple plugin option.

llvm-svn: 214186
This commit is contained in:
Rafael Espindola 2014-07-29 17:27:07 +00:00
parent 8013451450
commit bf1a81b6b5

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