aboutsummaryrefslogtreecommitdiff
path: root/test/ELF/lto-plugin-ignore.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/ELF/lto-plugin-ignore.s')
-rw-r--r--test/ELF/lto-plugin-ignore.s11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/ELF/lto-plugin-ignore.s b/test/ELF/lto-plugin-ignore.s
new file mode 100644
index 000000000000..2f45a43b2428
--- /dev/null
+++ b/test/ELF/lto-plugin-ignore.s
@@ -0,0 +1,11 @@
+# REQUIRES: x86
+
+# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
+# RUN: ld.lld %t -plugin-opt=/foo/bar -plugin-opt=-fresolution=zed \
+# RUN: -plugin-opt=-pass-through=-lgcc -plugin-opt=-function-sections \
+# RUN: -plugin-opt=-data-sections -o /dev/null
+
+# RUN: not ld.lld %t -plugin-opt=-data-sectionssss \
+# RUN: -plugin-opt=-function-sectionsss 2>&1 | FileCheck %s
+# CHECK: unknown option: -data-sectionsss
+# CHECK: unknown option: -function-sectionsss