summaryrefslogtreecommitdiff
path: root/libcxxabi/test
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@acm.org>2022-02-18 11:06:58 -0800
committerNathan Sidwell <nathan@acm.org>2022-05-03 06:45:25 -0700
commited2d4da732006d76e2f7b4315a2056b2d7b2f15c (patch)
treea000ecd27ae5840acb98c8bee1c0f18b4a072fec /libcxxabi/test
parenteac22d0754f70df10ea0eb6f59cbd1ef012ab5a4 (diff)
downloadllvm-ed2d4da732006d76e2f7b4315a2056b2d7b2f15c.tar.gz
[demangler] Fold expressions of .* and ->*
(Exitingly) a fold expression's operators include .* and ->*, but we failed to demangle them as we categorize those as MemberExprs, not BinaryExprs. Reviewed By: dblaikie Differential Revision: https://reviews.llvm.org/D123305
Diffstat (limited to 'libcxxabi/test')
-rw-r--r--libcxxabi/test/test_demangle.pass.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/libcxxabi/test/test_demangle.pass.cpp b/libcxxabi/test/test_demangle.pass.cpp
index 172f15ff7ad0..b0295ce0344d 100644
--- a/libcxxabi/test/test_demangle.pass.cpp
+++ b/libcxxabi/test/test_demangle.pass.cpp
@@ -29963,6 +29963,8 @@ const char* cases[][2] =
"void Partial<1, 2>::foldr<3, 4>(A<1 + (2 + ((3, 4) + ... + (1 + (2 + ((3, 4) + ...)))))>)"},
{"_ZN7PartialIJLi1ELi2EEE5foldrIJLi3ELi4EEEEv1AIXplplLi1ELi2EfRplT_plplLi1ELi2EflplT_EE",
"void Partial<1, 2>::foldr<3, 4>(A<1 + 2 + ((3, 4) + ... + (1 + 2 + (... + (3, 4))))>)"},
+ {"_Z1fIXfLpm1x1yEEvv", "void f<(x ->* ... ->* (y...))>()"},
+ {"_Z1fIXfLds1x1yEEvv", "void f<(x .* ... .* (y...))>()"},
// reference collapsing:
{"_Z1fIR1SEiOT_", "int f<S&>(S&)"},
@@ -30173,6 +30175,9 @@ const char* invalid_cases[] =
"_ZN1fIiEEvNTUt_E",
"_ZNDTUt_Ev",
+ "_Z1fIXfLpt1x1yEEvv",
+ "_Z1fIXfLdt1x1yEEvv",
+
"_ZN1fIXawLi0EEEEvv",
"_ZNWUt_3FOOEv",