aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/testsuite
diff options
context:
space:
mode:
authorPaolo Carlini <pcarlini@suse.de>2006-02-07 15:11:10 +0000
committerPaolo Carlini <paolo@gcc.gnu.org>2006-02-07 15:11:10 +0000
commit774b9d213ac7f52fd74f3aca414775356fb6770c (patch)
tree6b18e0d7498ee480393dbe729f6b39f4e25f8acf /libstdc++-v3/testsuite
parent4f0de5dd33ec2f8eb0aa43da72d9cc493478f077 (diff)
downloadgcc-774b9d213ac7f52fd74f3aca414775356fb6770c.zip
gcc-774b9d213ac7f52fd74f3aca414775356fb6770c.tar.gz
gcc-774b9d213ac7f52fd74f3aca414775356fb6770c.tar.bz2
[multiple changes]
2006-02-07 Paolo Carlini <pcarlini@suse.de> * include/tr1/hashtable: Trivial formatting fixes. 2006-02-07 Paolo Carlini <pcarlini@suse.de> Zak Kipling <zak@transversal.com> PR libstdc++/26127 * include/tr1/hashtable (hashtable<>::key_equal): Define. (hashtable<>::bucket, rehash_base<>::max_load_factor): Fix. * testsuite/tr1/6_containers/unordered/hashtable/26127.cc: New. Co-Authored-By: Zak Kipling <zak@transversal.com> From-SVN: r110697
Diffstat (limited to 'libstdc++-v3/testsuite')
-rw-r--r--libstdc++-v3/testsuite/tr1/6_containers/unordered/hashtable/26127.cc39
1 files changed, 39 insertions, 0 deletions
diff --git a/libstdc++-v3/testsuite/tr1/6_containers/unordered/hashtable/26127.cc b/libstdc++-v3/testsuite/tr1/6_containers/unordered/hashtable/26127.cc
new file mode 100644
index 0000000..d14a625
--- /dev/null
+++ b/libstdc++-v3/testsuite/tr1/6_containers/unordered/hashtable/26127.cc
@@ -0,0 +1,39 @@
+// { dg-do compile }
+
+// Copyright (C) 2006 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.
+
+// 6.3 Unordered associative containers
+
+#include <tr1/unordered_set>
+
+// libstdc++/26127
+void test01()
+{
+ std::tr1::unordered_set<int> s;
+
+ s.bucket(42);
+ s.key_eq();
+ s.max_load_factor();
+}
+
+int main()
+{
+ test01();
+ return 0;
+}