summaryrefslogtreecommitdiff
path: root/test/ELF/ppc64-tocopt-option.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/ELF/ppc64-tocopt-option.s')
-rw-r--r--test/ELF/ppc64-tocopt-option.s14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/ELF/ppc64-tocopt-option.s b/test/ELF/ppc64-tocopt-option.s
new file mode 100644
index 000000000000..78494346beb5
--- /dev/null
+++ b/test/ELF/ppc64-tocopt-option.s
@@ -0,0 +1,14 @@
+# REQUIRES: x86
+
+# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
+# RUN: not ld.lld %t --toc-optimize -o /dev/null 2>&1 | FileCheck %s
+
+# CHECK: error: --toc-optimize is only supported on the PowerPC64 target
+
+ .global __start
+ .type __start,@function
+
+ .text
+ .quad 0
+ __start:
+