1## Show the behaviour of --[no-]strip-underscore. This test does not test
2## the platform-specific default behaviour. This is tested elsewhere.
3
4RUN: llvm-cxxfilt -_ __ZN2ns1fE _ZSt1f _f | FileCheck %s -check-prefix CHECK-STRIPPED
5RUN: llvm-cxxfilt --strip-underscore __ZN2ns1fE _ZSt1f _f | FileCheck %s -check-prefix CHECK-STRIPPED
6RUN: llvm-cxxfilt -n __ZN2ns1fE _ZSt1f _f | FileCheck %s -check-prefix CHECK-UNSTRIPPED
7RUN: llvm-cxxfilt --no-strip-underscore __ZN2ns1fE _ZSt1f _f | FileCheck %s -check-prefix CHECK-UNSTRIPPED
8
9CHECK-STRIPPED: ns::f
10CHECK-STRIPPED: _ZSt1f
11CHECK-STRIPPED: _f
12
13CHECK-UNSTRIPPED: __ZN2ns1fE
14CHECK-UNSTRIPPED: std::f
15CHECK-UNSTRIPPED: _f
16