summaryrefslogtreecommitdiff
path: root/libstdc++-v3/testsuite/abi/demangle
diff options
context:
space:
mode:
authordgregor <dgregor@138bc75d-0d04-0410-961f-82ee72b054a4>2007-08-31 19:15:26 +0000
committerdgregor <dgregor@138bc75d-0d04-0410-961f-82ee72b054a4>2007-08-31 19:15:26 +0000
commitc4692e0443adc1dad6b7ff91f324b3e2af4f6b12 (patch)
treec76c68427c0ca0171a3ebeaf7bd79a511fff88d6 /libstdc++-v3/testsuite/abi/demangle
parent2caed3c639365fa7fa23564590bd98bb1dd4c28c (diff)
downloadgcc-c4692e0443adc1dad6b7ff91f324b3e2af4f6b12.tar.gz
2007-08-31 Douglas Gregor <doug.gregor@gmail.com>
* mangle.c (write_type): Change mangling of rvalue reference from `RR' to `O'. 2007-08-31 Douglas Gregor <doug.gregor@gmail.com> * demangle.h (enum demangle_component_type): Add DEMANGLE_COMPONENT_RVALUE_REFERENCE. 2007-08-31 Douglas Gregor <doug.gregor@gmail.com> * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_RVALUE_REFERENCE. (d_make_comp): Ditto. (cplus_demangle_type): Ditto. (d_print_comp): Ditto. (d_print_mod): Ditto. (d_print_function_type): Ditto. 2007-08-31 Douglas Gregor <doug.gregor@gmail.com> * testsuite/abi/demangle/cxx0x/rref.cc: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@127999 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/testsuite/abi/demangle')
-rw-r--r--libstdc++-v3/testsuite/abi/demangle/cxx0x/rref.cc32
1 files changed, 32 insertions, 0 deletions
diff --git a/libstdc++-v3/testsuite/abi/demangle/cxx0x/rref.cc b/libstdc++-v3/testsuite/abi/demangle/cxx0x/rref.cc
new file mode 100644
index 00000000000..cb085b48d51
--- /dev/null
+++ b/libstdc++-v3/testsuite/abi/demangle/cxx0x/rref.cc
@@ -0,0 +1,32 @@
+// 2007-06-28 Douglas Gregor <doug.gregor@gmail.com>
+
+// Copyright (C) 2007 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, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
+// USA.
+
+// IA 64 C++ ABI - 5.1 External Names (a.k.a. Mangling)
+
+#include <testsuite_hooks.h>
+
+int main()
+{
+ using namespace __gnu_test;
+
+ verify_demangle("_Z1fOi", "f(int&&)");
+
+ return 0;
+}