Add a test for the mtriple plugin option.
[oota-llvm.git] / test / tools / gold / mtriple.ll
1 ; RUN: llvm-as %s -o %t.o
2 ; RUN: ld -plugin %llvmshlibdir/LLVMgold.so -m elf32ppc \
3 ; RUN:    -plugin-opt=mtriple=powerpc-linux-gnu \
4 ; RUN:    -shared %t.o -o %t2.o
5 ; RUN: llvm-readobj %t2.o | FileCheck %s
6
7 ; CHECK: Format: ELF32-ppc