[lld] r274808 - Test --demangle feature.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 7 16:43:10 PDT 2016


Author: ruiu
Date: Thu Jul  7 18:43:09 2016
New Revision: 274808

URL: http://llvm.org/viewvc/llvm-project?rev=274808&view=rev
Log:
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.

Modified:
    lld/trunk/test/ELF/conflict.s

Modified: lld/trunk/test/ELF/conflict.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/conflict.s?rev=274808&r1=274807&r2=274808&view=diff
==============================================================================
--- lld/trunk/test/ELF/conflict.s (original)
+++ lld/trunk/test/ELF/conflict.s Thu Jul  7 18:43:09 2016
@@ -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 | \




More information about the llvm-commits mailing list