Test --demangle feature.

Previously, it was not tested because the test was written in
a way that it passed on a platform that does not support
abi::__cxa_demangle. Now we restrict this test to Unix (by adding
"REQUIRES: shell") and assume that it always demangle symbols.
Thanks to Davide to find out the issue.

llvm-svn: 274808
This commit is contained in:
Rui Ueyama 2016-07-07 23:43:09 +00:00
parent 6d3eecc843
commit f731d0afed
1 changed files with 2 additions and 2 deletions

View File

@ -1,9 +1,9 @@
# REQUIRES: x86
# REQUIRES: x86, shell
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t1.o
# RUN: not ld.lld %t1.o %t1.o -o %t2 2>&1 | FileCheck -check-prefix=DEMANGLE %s
# DEMANGLE: duplicate symbol: {{mul\(double, double\)|_Z3muldd}} in
# DEMANGLE: duplicate symbol: mul(double, double) in
# DEMANGLE: duplicate symbol: foo in
# RUN: not ld.lld %t1.o %t1.o -o %t2 --no-demangle 2>&1 | \