From 1f042340f18f6437b4818b702bfff785ba398e5e Mon Sep 17 00:00:00 2001 From: Benjamin Kosnik Date: Thu, 14 Oct 2004 21:34:52 +0000 Subject: [PATCH] headers.cc: Add includes, compile only. 2004-10-14 Benjamin Kosnik * 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 | 19 +++++++++++ .../ext/{hash_map.cc => hash_map/1.cc} | 0 .../testsuite/ext/{ => hash_map}/14648.cc | 0 .../testsuite/ext/hash_map/instantiate.cc | 34 +++++++++++++++++++ .../ext/{hash_set.cc => hash_set/1.cc} | 0 .../check_construct_destroy.cc} | 0 .../instantiate.cc} | 0 libstdc++-v3/testsuite/ext/headers.cc | 4 ++- .../check_construct_destroy.cc} | 0 .../instantiate.cc} | 0 10 files changed, 56 insertions(+), 1 deletion(-) rename libstdc++-v3/testsuite/ext/{hash_map.cc => hash_map/1.cc} (100%) rename libstdc++-v3/testsuite/ext/{ => hash_map}/14648.cc (100%) create mode 100644 libstdc++-v3/testsuite/ext/hash_map/instantiate.cc rename libstdc++-v3/testsuite/ext/{hash_set.cc => hash_set/1.cc} (100%) rename libstdc++-v3/testsuite/ext/{hash_check_construct_destroy.cc => hash_set/check_construct_destroy.cc} (100%) rename libstdc++-v3/testsuite/ext/{hash_set_explicit_instantiation.cc => hash_set/instantiate.cc} (100%) rename libstdc++-v3/testsuite/ext/{slist_check_construct_destroy.cc => slist/check_construct_destroy.cc} (100%) rename libstdc++-v3/testsuite/ext/{slist_explicit_instantiation.cc => slist/instantiate.cc} (100%) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 31a9db02ad3..7159783e149 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,22 @@ +2004-10-14 Benjamin Kosnik + + * 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 * include/ext/mt_allocator.h: Tweaks. diff --git a/libstdc++-v3/testsuite/ext/hash_map.cc b/libstdc++-v3/testsuite/ext/hash_map/1.cc similarity index 100% rename from libstdc++-v3/testsuite/ext/hash_map.cc rename to libstdc++-v3/testsuite/ext/hash_map/1.cc diff --git a/libstdc++-v3/testsuite/ext/14648.cc b/libstdc++-v3/testsuite/ext/hash_map/14648.cc similarity index 100% rename from libstdc++-v3/testsuite/ext/14648.cc rename to libstdc++-v3/testsuite/ext/hash_map/14648.cc diff --git a/libstdc++-v3/testsuite/ext/hash_map/instantiate.cc b/libstdc++-v3/testsuite/ext/hash_map/instantiate.cc new file mode 100644 index 00000000000..c7a11bef299 --- /dev/null +++ b/libstdc++-v3/testsuite/ext/hash_map/instantiate.cc @@ -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 + +// { dg-do compile } + +template class __gnu_cxx::hash_map; diff --git a/libstdc++-v3/testsuite/ext/hash_set.cc b/libstdc++-v3/testsuite/ext/hash_set/1.cc similarity index 100% rename from libstdc++-v3/testsuite/ext/hash_set.cc rename to libstdc++-v3/testsuite/ext/hash_set/1.cc diff --git a/libstdc++-v3/testsuite/ext/hash_check_construct_destroy.cc b/libstdc++-v3/testsuite/ext/hash_set/check_construct_destroy.cc similarity index 100% rename from libstdc++-v3/testsuite/ext/hash_check_construct_destroy.cc rename to libstdc++-v3/testsuite/ext/hash_set/check_construct_destroy.cc diff --git a/libstdc++-v3/testsuite/ext/hash_set_explicit_instantiation.cc b/libstdc++-v3/testsuite/ext/hash_set/instantiate.cc similarity index 100% rename from libstdc++-v3/testsuite/ext/hash_set_explicit_instantiation.cc rename to libstdc++-v3/testsuite/ext/hash_set/instantiate.cc diff --git a/libstdc++-v3/testsuite/ext/headers.cc b/libstdc++-v3/testsuite/ext/headers.cc index 52f6028bd12..5315f96a238 100644 --- a/libstdc++-v3/testsuite/ext/headers.cc +++ b/libstdc++-v3/testsuite/ext/headers.cc @@ -1,3 +1,4 @@ +// { dg-do compile } // 1999-06-23 bkoz // Copyright (C) 1999, 2001, 2003 Free Software Foundation, Inc. @@ -35,9 +36,10 @@ #include #include #include +#include +#include #include #include #include #include -int main() { } diff --git a/libstdc++-v3/testsuite/ext/slist_check_construct_destroy.cc b/libstdc++-v3/testsuite/ext/slist/check_construct_destroy.cc similarity index 100% rename from libstdc++-v3/testsuite/ext/slist_check_construct_destroy.cc rename to libstdc++-v3/testsuite/ext/slist/check_construct_destroy.cc diff --git a/libstdc++-v3/testsuite/ext/slist_explicit_instantiation.cc b/libstdc++-v3/testsuite/ext/slist/instantiate.cc similarity index 100% rename from libstdc++-v3/testsuite/ext/slist_explicit_instantiation.cc rename to libstdc++-v3/testsuite/ext/slist/instantiate.cc