aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/testsuite/demangle/regression
diff options
context:
space:
mode:
authorCarlo Wood <carlo@alinoe.com>2003-11-07 17:55:27 +0000
committerCarlo Wood <carlo@gcc.gnu.org>2003-11-07 17:55:27 +0000
commit2d369f351f0af4f9056350522a82345028382010 (patch)
tree23c5c25b00f15b1ab14017f8b266b019de7bbce5 /libstdc++-v3/testsuite/demangle/regression
parentbcc8cc820aee26465255c3aa47d3367fdd4e3885 (diff)
downloadgcc-2d369f351f0af4f9056350522a82345028382010.zip
gcc-2d369f351f0af4f9056350522a82345028382010.tar.gz
gcc-2d369f351f0af4f9056350522a82345028382010.tar.bz2
re PR libstdc++/12736 (Demangler bug)
PR libstdc++/12736 * bits/demangle.h (qualifier_list<Allocator>::decode_KVrA): Added. (qualifier_list<Allocator>::decode_qualifiers): Collect concatenated K, V, r and A qualifiers before processing them as a group. * testsuite/demangle/abi_text/01.cc: Reordered CV-qualifiers. * testsuite/demangle/regression/cw-16.cc: New. From-SVN: r73339
Diffstat (limited to 'libstdc++-v3/testsuite/demangle/regression')
-rw-r--r--libstdc++-v3/testsuite/demangle/regression/cw-16.cc34
1 files changed, 34 insertions, 0 deletions
diff --git a/libstdc++-v3/testsuite/demangle/regression/cw-16.cc b/libstdc++-v3/testsuite/demangle/regression/cw-16.cc
new file mode 100644
index 0000000..866143a
--- /dev/null
+++ b/libstdc++-v3/testsuite/demangle/regression/cw-16.cc
@@ -0,0 +1,34 @@
+// 2003-10-14 Carlo Wood <carlo@alinoe.com>
+
+// Copyright (C) 2003 Free Software Foundation, Inc.
+//
+// This file is part of the GNU ISO C++ Library. This library is free
+// software; you can redistribute it and/or modify it under the
+// terms of the GNU General Public License as published by the
+// Free Software Foundation; either version 2, or (at your option)
+// any later version.
+
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+
+// You should have received a copy of the GNU General Public License along
+// with this library; see the file COPYING. If not, write to the Free
+// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+// USA.
+
+// IA 64 C++ ABI - 5.1 External Names (a.k.a. Mangling)
+
+#include <testsuite_hooks.h>
+
+// libcwd tests
+int main()
+{
+ using namespace __gnu_test;
+
+verify_demangle("_Z3fooIA6_KiEvA9_KT_rVPrS4_",
+ "void foo<int const [6]>(int const [9][6], int const restrict (* volatile restrict) [9][6])");
+
+ return 0;
+}