aboutsummaryrefslogtreecommitdiffstats
path: root/test/ELF/icf-none.s
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2017-08-20 21:03:55 +0000
committerDimitry Andric <dim@FreeBSD.org>2017-08-20 21:03:55 +0000
commitf1f34882c73d8ed4f1be85e7237ed195fb27bd10 (patch)
treeca4c5aba38f9d71db0547e2d92d90069c0f0693d /test/ELF/icf-none.s
parent9e3ca9b3ba1e0fdf794978cb8c8ae386aad936ad (diff)
downloadsrc-f1f34882c73d8ed4f1be85e7237ed195fb27bd10.tar.gz
src-f1f34882c73d8ed4f1be85e7237ed195fb27bd10.zip
Vendor import of lld release_50 branch r311219:vendor/lld/lld-release_50-r311606vendor/lld/lld-release_50-r311219
Notes
Notes: svn path=/vendor/lld/dist/; revision=322734 svn path=/vendor/lld/lld-release_50-r311606/; revision=322844; tag=vendor/lld/lld-release_50-r311606
Diffstat (limited to 'test/ELF/icf-none.s')
-rw-r--r--test/ELF/icf-none.s22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/ELF/icf-none.s b/test/ELF/icf-none.s
new file mode 100644
index 000000000000..671f2085f669
--- /dev/null
+++ b/test/ELF/icf-none.s
@@ -0,0 +1,22 @@
+# REQUIRES: x86
+
+# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
+# RUN: ld.lld %t -o %t2 --icf=all --icf=none --verbose | FileCheck %s
+
+# CHECK-NOT: selected .text.f1
+
+.globl _start, f1, f2
+_start:
+ ret
+
+.section .text.f1, "ax"
+f1:
+ mov $60, %rax
+ mov $42, %rdi
+ syscall
+
+.section .text.f2, "ax"
+f2:
+ mov $60, %rax
+ mov $42, %rdi
+ syscall