1 ## Show the behaviour of --[no-]strip-underscore.
3 RUN: llvm-cxxfilt -_ ___ZN2ns1fE _____Z1fi_block_invoke _ZSt1f _f _._Z3f.0v | FileCheck %s -check-prefix CHECK-STRIPPED
4 RUN: llvm-cxxfilt --strip-underscore __ZN2ns1fE _____Z1fi_block_invoke _ZSt1f _f _._Z3f.0v | FileCheck %s -check-prefix CHECK-STRIPPED
5 RUN: llvm-cxxfilt -n ___ZN2ns1fE _____Z1fi_block_invoke _ZSt1f _f _._Z3f.0v | FileCheck %s -check-prefix CHECK-UNSTRIPPED
6 RUN: llvm-cxxfilt --no-strip-underscore ___ZN2ns1fE _____Z1fi_block_invoke _ZSt1f _f _._Z3f.0v | FileCheck %s -check-prefix CHECK-UNSTRIPPED
7 RUN: llvm-cxxfilt -n -_ _ZSt1f | FileCheck %s -check-prefix OVERRIDE-STRIPPED
8 RUN: llvm-cxxfilt -_ -n _ZSt1f | FileCheck %s -check-prefix OVERRIDE-UNSTRIPPED
11 CHECK-STRIPPED: invocation function for block in f(int)
12 CHECK-STRIPPED: _ZSt1f
14 CHECK-STRIPPED: ._Z3f.0v
16 CHECK-UNSTRIPPED: ___ZN2ns1fE
17 CHECK-UNSTRIPPED: _____Z1fi_block_invoke
18 CHECK-UNSTRIPPED: std::f
20 CHECK-UNSTRIPPED: _._Z3f.0v
22 OVERRIDE-STRIPPED: _ZSt1f
23 OVERRIDE-UNSTRIPPED: std::f