2014-11-07 09:30:49 +08:00
|
|
|
# XFAIL: win32
|
|
|
|
#
|
2014-10-20 13:04:53 +08:00
|
|
|
# Check that the linker is able to demangle strings properly.
|
|
|
|
# Once there is a way to add undefined symbols using yaml2obj, the test will be
|
|
|
|
# changed.
|
2014-11-07 09:30:49 +08:00
|
|
|
|
2014-10-20 13:04:53 +08:00
|
|
|
RUN: lld -flavor gnu -target x86_64 %p/Inputs/undefcpp.o --noinhibit-exec 2>&1 | FileCheck -check-prefix=DEMANGLE %s
|
|
|
|
RUN: lld -flavor gnu -target x86_64 %p/Inputs/undefcpp.o --noinhibit-exec --no-demangle 2>&1 | FileCheck -check-prefix=NODEMANGLE %s
|
|
|
|
RUN: lld -flavor gnu -target x86_64 %p/Inputs/undefcpp.o --noinhibit-exec --demangle 2>&1 | FileCheck -check-prefix=DEMANGLE %s
|
|
|
|
|
|
|
|
#DEMANGLE: undefcpp.o: foo(char const*)
|
|
|
|
#NODEMANGLE: undefcpp.o: _Z3fooPKc
|