summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/test/tools/gold/mtriple.ll7
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/test/tools/gold/mtriple.ll b/llvm/test/tools/gold/mtriple.ll
new file mode 100644
index 00000000000..61a0191efc9
--- /dev/null
+++ b/llvm/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
OpenPOWER on IntegriCloud