forked from OSchip/llvm-project
17 lines
447 B
ArmAsm
17 lines
447 B
ArmAsm
|
# 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
|