]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
headers.cc: Add includes, compile only.
authorBenjamin Kosnik <bkoz@redhat.com>
Thu, 14 Oct 2004 21:34:52 +0000 (21:34 +0000)
committerBenjamin Kosnik <bkoz@gcc.gnu.org>
Thu, 14 Oct 2004 21:34:52 +0000 (21:34 +0000)
2004-10-14  Benjamin Kosnik  <bkoz@redhat.com>

* testsuite/ext/headers.cc: Add includes, compile only.
* testsuite/ext/hash_map.cc: Move to...
* testsuite/ext/hash_map/1.cc: ...here.
* testsuite/ext/14648.cc: Move to...
* testsuite/ext/hash_map/14648.cc: ...here.
* testsuite/ext/hash_map/instantiate.cc: Add.
* testsuite/ext/hash_set.cc: Move to...
* testsuite/ext/hash_set/1.cc: ...here.
* testsuite/ext/hash_set_explicit_instantiation.cc: Move to...
* testsuite/ext/hash_set/instantiate.cc: ...here.
* testsuite/ext/hash_check_construct_destroy.cc: Move to...
* testsuite/ext/hash_set/check_construct_destroy.cc: ...here.
* testsuite/ext/slist_check_construct_destroy.cc: Move to...
* testsuite/ext/slist/check_construct_destroy.cc: ...here.
* testsuite/ext/slist_explicit_instantiation.cc: Move to...
* testsuite/ext/slist/instantiate.cc: ...here.

From-SVN: r89054

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/ext/hash_map/1.cc [moved from libstdc++-v3/testsuite/ext/hash_map.cc with 100% similarity]
libstdc++-v3/testsuite/ext/hash_map/14648.cc [moved from libstdc++-v3/testsuite/ext/14648.cc with 100% similarity]
libstdc++-v3/testsuite/ext/hash_map/instantiate.cc [new file with mode: 0644]
libstdc++-v3/testsuite/ext/hash_set/1.cc [moved from libstdc++-v3/testsuite/ext/hash_set.cc with 100% similarity]
libstdc++-v3/testsuite/ext/hash_set/check_construct_destroy.cc [moved from libstdc++-v3/testsuite/ext/hash_check_construct_destroy.cc with 100% similarity]
libstdc++-v3/testsuite/ext/hash_set/instantiate.cc [moved from libstdc++-v3/testsuite/ext/hash_set_explicit_instantiation.cc with 100% similarity]
libstdc++-v3/testsuite/ext/headers.cc
libstdc++-v3/testsuite/ext/slist/check_construct_destroy.cc [moved from libstdc++-v3/testsuite/ext/slist_check_construct_destroy.cc with 100% similarity]
libstdc++-v3/testsuite/ext/slist/instantiate.cc [moved from libstdc++-v3/testsuite/ext/slist_explicit_instantiation.cc with 100% similarity]

index 31a9db02ad32f4e76ea5d7da68a961bc5f596ba0..7159783e1493d14c1ac7b7364e78822ef68d14f9 100644 (file)
@@ -1,3 +1,22 @@
+2004-10-14  Benjamin Kosnik  <bkoz@redhat.com>
+
+       * testsuite/ext/headers.cc: Add includes, compile only.
+       * testsuite/ext/hash_map.cc: Move to...
+       * testsuite/ext/hash_map/1.cc: ...here.
+       * testsuite/ext/14648.cc: Move to...
+       * testsuite/ext/hash_map/14648.cc: ...here.
+       * testsuite/ext/hash_map/instantiate.cc: Add.
+       * testsuite/ext/hash_set.cc: Move to...
+       * testsuite/ext/hash_set/1.cc: ...here.
+       * testsuite/ext/hash_set_explicit_instantiation.cc: Move to...
+       * testsuite/ext/hash_set/instantiate.cc: ...here.
+       * testsuite/ext/hash_check_construct_destroy.cc: Move to...
+       * testsuite/ext/hash_set/check_construct_destroy.cc: ...here.
+       * testsuite/ext/slist_check_construct_destroy.cc: Move to...
+       * testsuite/ext/slist/check_construct_destroy.cc: ...here.
+       * testsuite/ext/slist_explicit_instantiation.cc: Move to...
+       * testsuite/ext/slist/instantiate.cc: ...here.
+       
 2004-10-14  Benjamin Kosnik  <bkoz@redhat.com>
 
        * include/ext/mt_allocator.h: Tweaks.
diff --git a/libstdc++-v3/testsuite/ext/hash_map/instantiate.cc b/libstdc++-v3/testsuite/ext/hash_map/instantiate.cc
new file mode 100644 (file)
index 0000000..c7a11be
--- /dev/null
@@ -0,0 +1,34 @@
+// Copyright (C) 2004 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.
+
+// As a special exception, you may use this file as part of a free software
+// library without restriction.  Specifically, if other files instantiate
+// templates or use macros or inline functions from this file, or you compile
+// this file and link it with other files to produce an executable, this
+// file does not by itself cause the resulting executable to be covered by
+// the GNU General Public License.  This exception does not however
+// invalidate any other reasons why the executable file might be covered by
+// the GNU General Public License.
+
+// This file tests explicit instantiation of library containers
+
+#include <ext/hash_map>
+
+// { dg-do compile }
+
+template class __gnu_cxx::hash_map<int, char>;
index 52f6028bd123ff3257873ad83e412ce7b0421e7b..5315f96a238dfd4c49bd62a28cb196f65299ae83 100644 (file)
@@ -1,3 +1,4 @@
+// { dg-do compile }
 // 1999-06-23 bkoz 
 
 // Copyright (C) 1999, 2001, 2003 Free Software Foundation, Inc.
 #include <ext/slist>
 #include <ext/debug_allocator.h>
 #include <ext/malloc_allocator.h>
+#include <ext/new_allocator.h>
+#include <ext/array_allocator.h>
 #include <ext/mt_allocator.h>
 #include <ext/pool_allocator.h>
 #include <ext/stdio_filebuf.h>
 #include <ext/stdio_sync_filebuf.h>
 
-int main() { }