summaryrefslogtreecommitdiff
path: root/test/ELF/duplicated-synthetic-sym.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/ELF/duplicated-synthetic-sym.s')
-rw-r--r--test/ELF/duplicated-synthetic-sym.s10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/ELF/duplicated-synthetic-sym.s b/test/ELF/duplicated-synthetic-sym.s
new file mode 100644
index 0000000000000..cfd8642d2d173
--- /dev/null
+++ b/test/ELF/duplicated-synthetic-sym.s
@@ -0,0 +1,10 @@
+// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
+// RUN: cd %S
+// RUN: not ld.lld %t.o --format=binary duplicated-synthetic-sym.s -o %t.elf 2>&1 | FileCheck %s
+
+// CHECK: duplicate symbol: _binary_duplicated_synthetic_sym_s_start
+// CHECK: defined at (internal):(.data+0x0)
+
+ .globl _binary_duplicated_synthetic_sym_s_start
+_binary_duplicated_synthetic_sym_s_start:
+ .long 0