llvm-project/lld/test/ELF/conflict.s

17 lines
447 B
ArmAsm
Raw Normal View History

# REQUIRES: x86
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
# RUN: not ld.lld %t %t -o %t2 2>&1 | FileCheck -check-prefix=DEMANGLE %s
# RUN: not ld.lld %t %t -o %t2 --no-demangle 2>&1 | \
# RUN: FileCheck -check-prefix=NO_DEMANGLE %s
# DEMANGLE: duplicate symbol: {{mul\(double, double\)|_Z3muldd}} in
# NO_DEMANGLE: duplicate symbol: _Z3muldd in
.globl _Z3muldd
_Z3muldd:
mov $60, %rax
mov $42, %rdi
syscall