| 1 |
## Show that llvm-cxxfilt can handle basic demangling for command-line inputs, |
| 2 |
## including when they are part of a string. Note that this test uses "-n" |
| 3 |
## (alias for --no-strip-underscore) because on darwin, the default for |
| 4 |
## --strip-underscore is true, but false elsewhere. |
| 5 |
|
| 6 |
RUN: llvm-cxxfilt -n _Z1fi abc | FileCheck %s |
| 7 |
RUN: echo "Mangled _Z1fi and _Z3foov in string." | llvm-cxxfilt -n \ |
| 8 |
RUN: | FileCheck %s --check-prefix=CHECK-STRING |
| 9 |
RUN: llvm-cxxfilt -n "CLI remains mangled _Z1fi" \ |
| 10 |
RUN: | FileCheck %s --check-prefix=CHECK-MANGLED |
| 11 |
|
| 12 |
CHECK: f(int) |
| 13 |
CHECK-NEXT: abc |
| 14 |
CHECK-STRING: Mangled f(int) and foo() in string. |
| 15 |
CHECK-MANGLED: CLI remains mangled _Z1fi |