summaryrefslogtreecommitdiffstats
path: root/lld/test/ELF/linkerscript/linkerscript-ouputformat.s
diff options
context:
space:
mode:
Diffstat (limited to 'lld/test/ELF/linkerscript/linkerscript-ouputformat.s')
-rw-r--r--lld/test/ELF/linkerscript/linkerscript-ouputformat.s10
1 files changed, 10 insertions, 0 deletions
diff --git a/lld/test/ELF/linkerscript/linkerscript-ouputformat.s b/lld/test/ELF/linkerscript/linkerscript-ouputformat.s
new file mode 100644
index 00000000000..3c6cfdc8f96
--- /dev/null
+++ b/lld/test/ELF/linkerscript/linkerscript-ouputformat.s
@@ -0,0 +1,10 @@
+# REQUIRES: x86
+# RUN: echo "OUTPUT_FORMAT(x, y, z)" > %t.script
+# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-freebsd %s -o %t1
+# RUN: ld.lld -shared -o %t2 %t1 %t.script
+# RUN: llvm-readobj %t2 > /dev/null
+
+# RUN: echo "OUTPUT_FORMAT(x, y)" > %t.script
+# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-freebsd %s -o %t1
+# RUN: not ld.lld -shared -o %t2 %t1 %t.script
+# RUN: llvm-readobj %t2 > /dev/null
OpenPOWER on IntegriCloud