From 9c4d7e5294648dd5cd34652e8f132d7f1ec25f4e Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Thu, 10 Jun 2010 17:15:18 +0200 Subject: re PR other/43838 (Incorrect output from abi::__cxa_demangle) PR other/43838 * cp-demangle.c (struct d_print_info): Add flush_count field. (d_print_init): Initialize it to 0. (d_print_flush): Increment it. (d_print_comp): If needed flush before appending ", ". Only decrement dpi->len if no flushes happened during the recursive call. * testsuite/demangle-expected: Add a test for this. From-SVN: r160554 --- libiberty/testsuite/demangle-expected | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libiberty/testsuite') diff --git a/libiberty/testsuite/demangle-expected b/libiberty/testsuite/demangle-expected index ef84bc113a8..15a0fe75509 100644 --- a/libiberty/testsuite/demangle-expected +++ b/libiberty/testsuite/demangle-expected @@ -3951,6 +3951,9 @@ decltype (({parm#1}.(operator-))()) h(A) --format=gnu-v3 _Z1fDn f(decltype(nullptr)) +--format=gnu-v3 +_ZN5aaaaa6bbbbbb5cccccIN23ddddddddddddddddddddddd3eeeENS2_4ffff16ggggggggggggggggENS0_9hhhhhhhhhES6_S6_S6_S6_S6_S6_S6_EE +aaaaa::bbbbbb::ccccc # # Ada (GNAT) tests. # -- cgit v1.2.1