2019-12-09 21:58:40 +08:00
|
|
|
## Show that llvm-cxxfilt can handle basic demangling for command-line inputs,
|
|
|
|
## including when they are part of a string. Note that this test uses "-n"
|
2019-12-11 00:06:36 +08:00
|
|
|
## (alias for --no-strip-underscore) because on darwin, the default for
|
|
|
|
## --strip-underscore is true, but false elsewhere.
|
2019-12-09 21:58:40 +08:00
|
|
|
|
|
|
|
RUN: llvm-cxxfilt -n _Z1fi abc | FileCheck %s
|
2019-12-09 23:06:00 +08:00
|
|
|
RUN: echo "Mangled _Z1fi and _Z3foov in string." | llvm-cxxfilt -n \
|
2019-02-12 04:30:53 +08:00
|
|
|
RUN: | FileCheck %s --check-prefix=CHECK-STRING
|
2019-12-09 21:58:40 +08:00
|
|
|
RUN: llvm-cxxfilt -n "CLI remains mangled _Z1fi" \
|
2019-02-12 04:30:53 +08:00
|
|
|
RUN: | FileCheck %s --check-prefix=CHECK-MANGLED
|
2016-09-07 03:16:48 +08:00
|
|
|
|
|
|
|
CHECK: f(int)
|
|
|
|
CHECK-NEXT: abc
|
2019-02-12 04:30:53 +08:00
|
|
|
CHECK-STRING: Mangled f(int) and foo() in string.
|
|
|
|
CHECK-MANGLED: CLI remains mangled _Z1fi
|