summaryrefslogtreecommitdiff
path: root/test/ELF/icf8.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/ELF/icf8.s')
-rw-r--r--test/ELF/icf8.s14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/ELF/icf8.s b/test/ELF/icf8.s
new file mode 100644
index 000000000000..51163eab69ef
--- /dev/null
+++ b/test/ELF/icf8.s
@@ -0,0 +1,14 @@
+# REQUIRES: x86
+
+# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
+# RUN: ld.lld %t.o -o %t.so --icf=all -shared
+# RUN: llvm-objdump -t %t.so | FileCheck %s
+
+# CHECK: zed
+
+ .section .foo,"ax",@progbits
+ nop
+
+ .section .bar,"ax",@progbits
+zed:
+ nop