summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/llvm-cxxfilt/underscore.test
diff options
context:
space:
mode:
authorJames Henderson <jh7370@my.bristol.ac.uk>2019-12-09 11:43:47 +0000
committerJames Henderson <jh7370@my.bristol.ac.uk>2019-12-09 12:24:23 +0000
commitdba420bc05aec26c2b6d060cfd186169da30b5f7 (patch)
tree57a87953f132727241eb798fe1b9537223a50ba5 /llvm/test/tools/llvm-cxxfilt/underscore.test
parent0d1490bf6a68d9397a6402c8f702e30f07adacf1 (diff)
downloadbcm5719-llvm-dba420bc05aec26c2b6d060cfd186169da30b5f7.tar.gz
bcm5719-llvm-dba420bc05aec26c2b6d060cfd186169da30b5f7.zip
[test][tools] Add missing and improve testing
Mostly this adds testing for certain aliases in more explicit ways. There are also a few tidy-ups, and additions of missing testing, where the feature was either not tested at all, or not tested explicitly and sufficiently. Reviewed by: MaskRay, rupprecht, grimar Differential Revision: https://reviews.llvm.org/D71116
Diffstat (limited to 'llvm/test/tools/llvm-cxxfilt/underscore.test')
-rw-r--r--llvm/test/tools/llvm-cxxfilt/underscore.test4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/test/tools/llvm-cxxfilt/underscore.test b/llvm/test/tools/llvm-cxxfilt/underscore.test
index f5b85110c62..f84eac8087d 100644
--- a/llvm/test/tools/llvm-cxxfilt/underscore.test
+++ b/llvm/test/tools/llvm-cxxfilt/underscore.test
@@ -1,5 +1,8 @@
RUN: llvm-cxxfilt -_ __ZN2ns1fE _ZSt1f _f | FileCheck %s -check-prefix CHECK-STRIPPED
+RUN: llvm-cxxfilt --strip-underscore __ZN2ns1fE _ZSt1f _f | FileCheck %s -check-prefix CHECK-STRIPPED
+RUN: llvm-cxxfilt __ZN2ns1fE _ZSt1f _f | FileCheck %s -check-prefix CHECK-UNSTRIPPED
RUN: llvm-cxxfilt -n __ZN2ns1fE _ZSt1f _f | FileCheck %s -check-prefix CHECK-UNSTRIPPED
+RUN: llvm-cxxfilt --no-strip-underscore __ZN2ns1fE _ZSt1f _f | FileCheck %s -check-prefix CHECK-UNSTRIPPED
CHECK-STRIPPED: ns::f
CHECK-STRIPPED: _ZSt1f
@@ -8,4 +11,3 @@ CHECK-STRIPPED: _f
CHECK-UNSTRIPPED: __ZN2ns1fE
CHECK-UNSTRIPPED: std::f
CHECK-UNSTRIPPED: _f
-
OpenPOWER on IntegriCloud