summaryrefslogtreecommitdiff
path: root/libstdc++-v3/testsuite/backward
diff options
context:
space:
mode:
authorpthomas <pthomas@138bc75d-0d04-0410-961f-82ee72b054a4>2002-03-18 10:47:15 +0000
committerpthomas <pthomas@138bc75d-0d04-0410-961f-82ee72b054a4>2002-03-18 10:47:15 +0000
commit56059d899d9eb0acf9c5cf34aa81105a077c3bf6 (patch)
treee803c79fd6c8a02af1c80d11ba46f3c70fc41de6 /libstdc++-v3/testsuite/backward
parentd4639c022f493f98642cf675633215fe427b4f74 (diff)
downloadgcc-56059d899d9eb0acf9c5cf34aa81105a077c3bf6.tar.gz
2002-03-15 Philipp Thomas <pthomas@suse.de>
* include/backward/hash_map.h: hash, hashtable, hash_map and hash_multimap are in namespace __gnu_cxx. include/backward/hash_set.h: hash, hashtable, hash_set and hash_multiset are in namespace __gnu_cxx. include/backward/hashtable.h: hash and hashtable are in namespace __gnu_cxx. include/backward/rope.h: char_producer, sequence_buffer, rope, crope and wrope are in namespace __gnu_cxx. include/backward/slist.h: slist is in namespace __gnu_cxx. * testsuite/backward/header_hash_map_h.cc testsuite/backward/header_hash_set_h.cc testsuite/backward/header_hashtable_h.cc testsuite/backward/header_rope_h.cc testsuite/backward/header_slist_h.cc testsuite/backward/header_tempbuf_h.cc: New tests for checking that we're using the correct namespace. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@50956 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/testsuite/backward')
-rw-r--r--libstdc++-v3/testsuite/backward/header_hash_map_h.cc31
-rw-r--r--libstdc++-v3/testsuite/backward/header_hash_set_h.cc31
-rw-r--r--libstdc++-v3/testsuite/backward/header_hashtable_h.cc31
-rw-r--r--libstdc++-v3/testsuite/backward/header_rope_h.cc31
-rw-r--r--libstdc++-v3/testsuite/backward/header_slist_h.cc31
-rw-r--r--libstdc++-v3/testsuite/backward/header_tempbuf_h.cc31
6 files changed, 186 insertions, 0 deletions
diff --git a/libstdc++-v3/testsuite/backward/header_hash_map_h.cc b/libstdc++-v3/testsuite/backward/header_hash_map_h.cc
new file mode 100644
index 00000000000..dfae6081bba
--- /dev/null
+++ b/libstdc++-v3/testsuite/backward/header_hash_map_h.cc
@@ -0,0 +1,31 @@
+// 2002-03-15 Philipp Thomas <pthomas@suse.de>
+
+// Copyright (C) 2001 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.
+
+// backward header hash_map.h
+
+#include <hash_map.h>
+#include <testsuite_hooks.h>
+
+// { dg-options "-Wno-deprecated" }
+
+int main(void)
+{
+ return 0;
+}
diff --git a/libstdc++-v3/testsuite/backward/header_hash_set_h.cc b/libstdc++-v3/testsuite/backward/header_hash_set_h.cc
new file mode 100644
index 00000000000..bb0882a35cc
--- /dev/null
+++ b/libstdc++-v3/testsuite/backward/header_hash_set_h.cc
@@ -0,0 +1,31 @@
+// 2002-03-15 Philipp Thomas <pthomas@suse.de>
+
+// Copyright (C) 2001 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.
+
+// backward header hash_set.h
+
+#include <hash_set.h>
+#include <testsuite_hooks.h>
+
+// { dg-options "-Wno-deprecated" }
+
+int main(void)
+{
+ return 0;
+}
diff --git a/libstdc++-v3/testsuite/backward/header_hashtable_h.cc b/libstdc++-v3/testsuite/backward/header_hashtable_h.cc
new file mode 100644
index 00000000000..e407e1a48ab
--- /dev/null
+++ b/libstdc++-v3/testsuite/backward/header_hashtable_h.cc
@@ -0,0 +1,31 @@
+// 2002-03-15 Philipp Thomas <pthomas@suse.de>
+
+// Copyright (C) 2001 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.
+
+// backward header hashtable.h
+
+#include <hashtable.h>
+#include <testsuite_hooks.h>
+
+// { dg-options "-Wno-deprecated" }
+
+int main(void)
+{
+ return 0;
+}
diff --git a/libstdc++-v3/testsuite/backward/header_rope_h.cc b/libstdc++-v3/testsuite/backward/header_rope_h.cc
new file mode 100644
index 00000000000..1bb94f19a7e
--- /dev/null
+++ b/libstdc++-v3/testsuite/backward/header_rope_h.cc
@@ -0,0 +1,31 @@
+// 2002-03-15 Philipp Thomas <pthomas@suse.de>
+
+// Copyright (C) 2001 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.
+
+// backward header rope.h
+
+#include <rope.h>
+#include <testsuite_hooks.h>
+
+// { dg-options "-Wno-deprecated" }
+
+int main(void)
+{
+ return 0;
+}
diff --git a/libstdc++-v3/testsuite/backward/header_slist_h.cc b/libstdc++-v3/testsuite/backward/header_slist_h.cc
new file mode 100644
index 00000000000..7d76d2aae80
--- /dev/null
+++ b/libstdc++-v3/testsuite/backward/header_slist_h.cc
@@ -0,0 +1,31 @@
+// 2002-03-15 Philipp Thomas <pthomas@suse.de>
+
+// Copyright (C) 2001 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.
+
+// backward header slist.h
+
+#include <slist.h>
+#include <testsuite_hooks.h>
+
+// { dg-options "-Wno-deprecated" }
+
+int main(void)
+{
+ return 0;
+}
diff --git a/libstdc++-v3/testsuite/backward/header_tempbuf_h.cc b/libstdc++-v3/testsuite/backward/header_tempbuf_h.cc
new file mode 100644
index 00000000000..16a6491a326
--- /dev/null
+++ b/libstdc++-v3/testsuite/backward/header_tempbuf_h.cc
@@ -0,0 +1,31 @@
+// 2002-03-15 Philipp Thomas <pthomas@suse.de>
+
+// Copyright (C) 2001 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.
+
+// backward header tempbuf.h
+
+#include <tempbuf.h>
+#include <testsuite_hooks.h>
+
+// { dg-options "-Wno-deprecated" }
+
+int main(void)
+{
+ return 0;
+}