aboutsummaryrefslogtreecommitdiff
path: root/libiberty/testsuite
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2016-11-07 23:09:29 +0000
committerMark Wielaard <mark@klomp.org>2016-11-18 11:06:18 +0100
commita4ddf8dc72f0ac10c3459a91949eb1bdb07ed10d (patch)
tree7415197f4db87cc9d0de4b1f61820344f1df7b90 /libiberty/testsuite
parent4d17eaece8b31e642acaf4d77fe961ad8e3aaf50 (diff)
downloadgdb-a4ddf8dc72f0ac10c3459a91949eb1bdb07ed10d.zip
gdb-a4ddf8dc72f0ac10c3459a91949eb1bdb07ed10d.tar.gz
gdb-a4ddf8dc72f0ac10c3459a91949eb1bdb07ed10d.tar.bz2
Implement P0012R1, Make exception specifications part of the type system.
libiberty/ * cp-demangle.c (is_fnqual_component_type): New. (d_encoding, d_print_comp_inner, d_print_mod_list): Use it. (FNQUAL_COMPONENT_CASE): New. (d_make_comp, has_return_type, d_print_comp_inner) (d_print_function_type): Use it. (next_is_type_qual): New. (d_cv_qualifiers, d_print_mod): Handle noexcept and throw-spec. include/ * demangle.h (enum demangle_component_type): Add DEMANGLE_COMPONENT_NOEXCEPT, DEMANGLE_COMPONENT_THROW_SPEC.
Diffstat (limited to 'libiberty/testsuite')
-rw-r--r--libiberty/testsuite/demangle-expected10
1 files changed, 10 insertions, 0 deletions
diff --git a/libiberty/testsuite/demangle-expected b/libiberty/testsuite/demangle-expected
index a567763..5badc3e 100644
--- a/libiberty/testsuite/demangle-expected
+++ b/libiberty/testsuite/demangle-expected
@@ -4596,3 +4596,13 @@ __10%0__S4_0T0T0
# Inheriting constructor
_ZN1DCI11BEi
D::B(int)
+
+# exception-specification (C++17)
+_Z1fIvJiELb0EEvPDOT1_EFT_DpT0_E
+void f<void, int, false>(void (*)(int) noexcept(false))
+
+_Z1fIvJiELb0EEvPDoFT_DpT0_E
+void f<void, int, false>(void (*)(int) noexcept)
+
+_Z1fIvJiELb0EEvPDwiEFT_DpT0_E
+void f<void, int, false>(void (*)(int) throw(int))