diff options
author | Benjamin Kosnik <bkoz@redhat.com> | 2004-10-14 21:34:52 +0000 |
---|---|---|
committer | Benjamin Kosnik <bkoz@gcc.gnu.org> | 2004-10-14 21:34:52 +0000 |
commit | 1f042340f18f6437b4818b702bfff785ba398e5e (patch) | |
tree | 7156dc00c09b56b86fbdcb9d2b45b778d42b709e | |
parent | 11aaaa84ae74f52ba9cb62ec6745c4b38f0247f9 (diff) | |
download | gcc-1f042340f18f6437b4818b702bfff785ba398e5e.zip gcc-1f042340f18f6437b4818b702bfff785ba398e5e.tar.gz gcc-1f042340f18f6437b4818b702bfff785ba398e5e.tar.bz2 |
headers.cc: Add includes, compile only.
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
-rw-r--r-- | libstdc++-v3/ChangeLog | 19 | ||||
-rw-r--r-- | libstdc++-v3/testsuite/ext/hash_map/1.cc (renamed from libstdc++-v3/testsuite/ext/hash_map.cc) | 0 | ||||
-rw-r--r-- | libstdc++-v3/testsuite/ext/hash_map/14648.cc (renamed from libstdc++-v3/testsuite/ext/14648.cc) | 0 | ||||
-rw-r--r-- | libstdc++-v3/testsuite/ext/hash_map/instantiate.cc | 34 | ||||
-rw-r--r-- | libstdc++-v3/testsuite/ext/hash_set/1.cc (renamed from libstdc++-v3/testsuite/ext/hash_set.cc) | 0 | ||||
-rw-r--r-- | libstdc++-v3/testsuite/ext/hash_set/check_construct_destroy.cc (renamed from libstdc++-v3/testsuite/ext/hash_check_construct_destroy.cc) | 0 | ||||
-rw-r--r-- | libstdc++-v3/testsuite/ext/hash_set/instantiate.cc (renamed from libstdc++-v3/testsuite/ext/hash_set_explicit_instantiation.cc) | 0 | ||||
-rw-r--r-- | libstdc++-v3/testsuite/ext/headers.cc | 4 | ||||
-rw-r--r-- | libstdc++-v3/testsuite/ext/slist/check_construct_destroy.cc (renamed from libstdc++-v3/testsuite/ext/slist_check_construct_destroy.cc) | 0 | ||||
-rw-r--r-- | libstdc++-v3/testsuite/ext/slist/instantiate.cc (renamed from libstdc++-v3/testsuite/ext/slist_explicit_instantiation.cc) | 0 |
10 files changed, 56 insertions, 1 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 31a9db0..7159783 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,24 @@ 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. * src/mt_allocator.cc: Same. diff --git a/libstdc++-v3/testsuite/ext/hash_map.cc b/libstdc++-v3/testsuite/ext/hash_map/1.cc index 2a0bc0b..2a0bc0b 100644 --- a/libstdc++-v3/testsuite/ext/hash_map.cc +++ b/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 index e54e2f8..e54e2f8 100644 --- a/libstdc++-v3/testsuite/ext/14648.cc +++ b/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 0000000..c7a11be --- /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 <ext/hash_map> + +// { dg-do compile } + +template class __gnu_cxx::hash_map<int, char>; diff --git a/libstdc++-v3/testsuite/ext/hash_set.cc b/libstdc++-v3/testsuite/ext/hash_set/1.cc index 9db82b7..9db82b7 100644 --- a/libstdc++-v3/testsuite/ext/hash_set.cc +++ b/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 index d95273e..d95273e 100644 --- a/libstdc++-v3/testsuite/ext/hash_check_construct_destroy.cc +++ b/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 index e59a152..e59a152 100644 --- a/libstdc++-v3/testsuite/ext/hash_set_explicit_instantiation.cc +++ b/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 52f6028..5315f96 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 <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() { } diff --git a/libstdc++-v3/testsuite/ext/slist_check_construct_destroy.cc b/libstdc++-v3/testsuite/ext/slist/check_construct_destroy.cc index 174c4da..174c4da 100644 --- a/libstdc++-v3/testsuite/ext/slist_check_construct_destroy.cc +++ b/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 index e31f526..e31f526 100644 --- a/libstdc++-v3/testsuite/ext/slist_explicit_instantiation.cc +++ b/libstdc++-v3/testsuite/ext/slist/instantiate.cc |