diff options
author | Nathan Sidwell <nathan@acm.org> | 2022-03-08 13:00:35 -0800 |
---|---|---|
committer | Nathan Sidwell <nathan@acm.org> | 2022-05-17 11:10:03 -0700 |
commit | 451894cadcf1210883ceefb2d69a0ed2d6a8cd8b (patch) | |
tree | 1d02872b057666ed99f2fbd5d5abb1bcefb2293b /libiberty/testsuite/demangle-expected | |
parent | 7a3f38a966a52893fb5bae301a1a3d56961358fb (diff) | |
download | gcc-451894cadcf1210883ceefb2d69a0ed2d6a8cd8b.zip gcc-451894cadcf1210883ceefb2d69a0ed2d6a8cd8b.tar.gz gcc-451894cadcf1210883ceefb2d69a0ed2d6a8cd8b.tar.bz2 |
demangler: Structured Bindings
C++ Structured bindings have a mangling that has yet to be formally
documented. However, it's been around for a while and shows up for
module support.
include/
* demangle.h (enum demangle_component_type): Add
DEMANGLE_COMPONENT_STRUCTURED_BINDING.
libiberty/
* cp-demangle.c (d_make_comp): Adjust.
(d_unqualified_name): Add 'DC' support.
(d_count_template_scopes): Adjust.
(d_print_comp_inner): Add structured binding.
* testsuite/demangle-expected: Add testcases.
Diffstat (limited to 'libiberty/testsuite/demangle-expected')
-rw-r--r-- | libiberty/testsuite/demangle-expected | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libiberty/testsuite/demangle-expected b/libiberty/testsuite/demangle-expected index de54ad7..2b0b531 100644 --- a/libiberty/testsuite/demangle-expected +++ b/libiberty/testsuite/demangle-expected @@ -1493,3 +1493,13 @@ decltype ({parm#1}.A::x) f<A>(A) _Z2f6IP1AEDtptfp_gssr1A1BE1xET_ decltype ({parm#1}->(::A::B::x)) f6<A*>(A*) + +# Structured Bindings +_ZDC1a1bE +[a, b] + +_ZNStDC1aEE +std::[a] + +_ZN3NMSDC1aEE +NMS::[a] |