From 554fd8c5195424bdbcabf5de30fdc183aba391bd Mon Sep 17 00:00:00 2001 From: upstream source tree Date: Sun, 15 Mar 2015 20:14:05 -0400 Subject: obtained gcc-4.6.4.tar.bz2 from upstream website; verified gcc-4.6.4.tar.bz2.sig; imported gcc-4.6.4 source tree from verified upstream tarball. downloading a git-generated archive based on the 'upstream' tag should provide you with a source tree that is binary identical to the one extracted from the above tarball. if you have obtained the source via the command 'git clone', however, do note that line-endings of files in your working directory might differ from line-endings of the respective files in the upstream repository. --- .../23_containers/headers/array/std_c++0x_neg.cc | 26 +++++++ .../23_containers/headers/bitset/synopsis.cc | 43 +++++++++++ .../23_containers/headers/deque/synopsis.cc | 46 ++++++++++++ .../23_containers/headers/forward_list/synopsis.cc | 53 ++++++++++++++ .../23_containers/headers/list/synopsis.cc | 46 ++++++++++++ .../23_containers/headers/map/synopsis.cc | 71 ++++++++++++++++++ .../23_containers/headers/queue/synopsis.cc | 50 +++++++++++++ .../23_containers/headers/set/synopsis.cc | 85 ++++++++++++++++++++++ .../23_containers/headers/stack/synopsis.cc | 48 ++++++++++++ .../23_containers/headers/tuple/std_c++0x_neg.cc | 26 +++++++ .../23_containers/headers/tuple/types_std_c++0x.cc | 26 +++++++ .../headers/unordered_map/std_c++0x_neg.cc | 26 +++++++ .../headers/unordered_set/std_c++0x_neg.cc | 26 +++++++ .../23_containers/headers/vector/synopsis.cc | 81 +++++++++++++++++++++ 14 files changed, 653 insertions(+) create mode 100644 libstdc++-v3/testsuite/23_containers/headers/array/std_c++0x_neg.cc create mode 100644 libstdc++-v3/testsuite/23_containers/headers/bitset/synopsis.cc create mode 100644 libstdc++-v3/testsuite/23_containers/headers/deque/synopsis.cc create mode 100644 libstdc++-v3/testsuite/23_containers/headers/forward_list/synopsis.cc create mode 100644 libstdc++-v3/testsuite/23_containers/headers/list/synopsis.cc create mode 100644 libstdc++-v3/testsuite/23_containers/headers/map/synopsis.cc create mode 100644 libstdc++-v3/testsuite/23_containers/headers/queue/synopsis.cc create mode 100644 libstdc++-v3/testsuite/23_containers/headers/set/synopsis.cc create mode 100644 libstdc++-v3/testsuite/23_containers/headers/stack/synopsis.cc create mode 100644 libstdc++-v3/testsuite/23_containers/headers/tuple/std_c++0x_neg.cc create mode 100644 libstdc++-v3/testsuite/23_containers/headers/tuple/types_std_c++0x.cc create mode 100644 libstdc++-v3/testsuite/23_containers/headers/unordered_map/std_c++0x_neg.cc create mode 100644 libstdc++-v3/testsuite/23_containers/headers/unordered_set/std_c++0x_neg.cc create mode 100644 libstdc++-v3/testsuite/23_containers/headers/vector/synopsis.cc (limited to 'libstdc++-v3/testsuite/23_containers/headers') diff --git a/libstdc++-v3/testsuite/23_containers/headers/array/std_c++0x_neg.cc b/libstdc++-v3/testsuite/23_containers/headers/array/std_c++0x_neg.cc new file mode 100644 index 000000000..e9317d7ed --- /dev/null +++ b/libstdc++-v3/testsuite/23_containers/headers/array/std_c++0x_neg.cc @@ -0,0 +1,26 @@ +// { dg-do compile } +// { dg-options "-std=gnu++98" } + +// Copyright (C) 2007, 2009 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 3, 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 COPYING3. If not see +// . + +#include + +// { dg-error "upcoming ISO" "" { target *-*-* } 32 } + + + diff --git a/libstdc++-v3/testsuite/23_containers/headers/bitset/synopsis.cc b/libstdc++-v3/testsuite/23_containers/headers/bitset/synopsis.cc new file mode 100644 index 000000000..0eccdf4bb --- /dev/null +++ b/libstdc++-v3/testsuite/23_containers/headers/bitset/synopsis.cc @@ -0,0 +1,43 @@ +// { dg-do compile } +// { dg-require-normal-mode "" } + +// Copyright (C) 2007, 2008, 2009, 2010 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 3, 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 COPYING3. If not see +// . + +#include + +namespace std { + template class bitset; + + // 23.3.5.3 bitset operations: + template + bitset operator&(const bitset&, const bitset&); + + template + bitset operator|(const bitset&, const bitset&); + + template + bitset operator^(const bitset&, const bitset&); + + template + basic_istream& + operator>>(basic_istream& is, bitset& x); + + template + basic_ostream& + operator<<(basic_ostream& os, const bitset& x); +} diff --git a/libstdc++-v3/testsuite/23_containers/headers/deque/synopsis.cc b/libstdc++-v3/testsuite/23_containers/headers/deque/synopsis.cc new file mode 100644 index 000000000..137ed6155 --- /dev/null +++ b/libstdc++-v3/testsuite/23_containers/headers/deque/synopsis.cc @@ -0,0 +1,46 @@ +// { dg-do compile } +// { dg-require-normal-mode "" } + +// Copyright (C) 2007, 2008, 2009, 2010 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 3, 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 COPYING3. If not see +// . + +#include + +namespace std { + template class deque; + + template + bool operator== (const deque& x, const deque& y); + + template + bool operator< (const deque& x, const deque& y); + + template + bool operator!= (const deque& x, const deque& y); + + template + bool operator> (const deque& x, const deque& y); + + template + bool operator>= (const deque& x, const deque& y); + + template + bool operator<= (const deque& x, const deque& y); + + template + void swap(deque& x, deque& y); +} diff --git a/libstdc++-v3/testsuite/23_containers/headers/forward_list/synopsis.cc b/libstdc++-v3/testsuite/23_containers/headers/forward_list/synopsis.cc new file mode 100644 index 000000000..73cd9c5b5 --- /dev/null +++ b/libstdc++-v3/testsuite/23_containers/headers/forward_list/synopsis.cc @@ -0,0 +1,53 @@ +// { dg-do compile } +// { dg-require-normal-mode "" } +// { dg-options "-std=gnu++0x" } + +// Copyright (C) 2008, 2009, 2010 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 3, 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 COPYING3. If not see +// . + +#include + +namespace std { + template class forward_list; + + template + bool operator==(const forward_list& x, + const forward_list&); + + template + bool operator< (const forward_list& x, + const forward_list&); + + template + bool operator!=(const forward_list& x, + const forward_list&); + + template + bool operator> (const forward_list& x, + const forward_list&); + + template + bool operator>=(const forward_list& x, + const forward_list&); + + template + bool operator<=(const forward_list& x, + const forward_list&); + + template + void swap(forward_list& x, forward_list& y); +} diff --git a/libstdc++-v3/testsuite/23_containers/headers/list/synopsis.cc b/libstdc++-v3/testsuite/23_containers/headers/list/synopsis.cc new file mode 100644 index 000000000..7d44c7cd0 --- /dev/null +++ b/libstdc++-v3/testsuite/23_containers/headers/list/synopsis.cc @@ -0,0 +1,46 @@ +// { dg-do compile } +// { dg-require-normal-mode "" } + +// Copyright (C) 2007, 2008, 2009, 2010 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 3, 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 COPYING3. If not see +// . + +#include + +namespace std { + template class list; + + template + bool operator==(const list& x, const list&); + + template + bool operator< (const list& x, const list&); + + template + bool operator!=(const list& x, const list&); + + template + bool operator> (const list& x, const list&); + + template + bool operator>=(const list& x, const list&); + + template + bool operator<=(const list& x, const list&); + + template + void swap(list& x, list& y); +} diff --git a/libstdc++-v3/testsuite/23_containers/headers/map/synopsis.cc b/libstdc++-v3/testsuite/23_containers/headers/map/synopsis.cc new file mode 100644 index 000000000..0fc977c9d --- /dev/null +++ b/libstdc++-v3/testsuite/23_containers/headers/map/synopsis.cc @@ -0,0 +1,71 @@ +// { dg-do compile } +// { dg-require-normal-mode "" } + +// Copyright (C) 2007, 2008, 2009, 2010 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 3, 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 COPYING3. If not see +// . + +#include + +namespace std { + template + class map; + template + bool operator==(const map& x, + const map& y); + template + bool operator< (const map& x, + const map& y); + template + bool operator!=(const map& x, + const map& y); + template + bool operator> (const map& x, + const map& y); + template + bool operator>=(const map& x, + const map& y); + template + bool operator<=(const map& x, + const map& y); + template + void swap(map& x, + map& y); + + template + class multimap; + template + bool operator==(const multimap& x, + const multimap& y); + template + bool operator< (const multimap& x, + const multimap& y); + template + bool operator!=(const multimap& x, + const multimap& y); + template + bool operator> (const multimap& x, + const multimap& y); + template + bool operator>=(const multimap& x, + const multimap& y); + template + bool operator<=(const multimap& x, + const multimap& y); + template + void swap(multimap& x, + multimap& y); +} diff --git a/libstdc++-v3/testsuite/23_containers/headers/queue/synopsis.cc b/libstdc++-v3/testsuite/23_containers/headers/queue/synopsis.cc new file mode 100644 index 000000000..ae2bb0e94 --- /dev/null +++ b/libstdc++-v3/testsuite/23_containers/headers/queue/synopsis.cc @@ -0,0 +1,50 @@ +// { dg-do compile } + +// Copyright (C) 2007, 2009 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 3, 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 COPYING3. If not see +// . + +#include + +namespace std { + template class queue; + template + bool operator==(const queue& x, + const queue& y); + + template + bool operator< (const queue& x, + const queue& y); + + template + bool operator!=(const queue& x, + const queue& y); + + template + bool operator> (const queue& x, + const queue& y); + + template + bool operator>=(const queue& x, + const queue& y); + + template + bool operator<=(const queue& x, + const queue& y); + + template + class priority_queue; +} diff --git a/libstdc++-v3/testsuite/23_containers/headers/set/synopsis.cc b/libstdc++-v3/testsuite/23_containers/headers/set/synopsis.cc new file mode 100644 index 000000000..94ae348f6 --- /dev/null +++ b/libstdc++-v3/testsuite/23_containers/headers/set/synopsis.cc @@ -0,0 +1,85 @@ +// { dg-do compile } +// { dg-require-normal-mode "" } + +// Copyright (C) 2007, 2008, 2009, 2010 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 3, 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 COPYING3. If not see +// . + +#include + +namespace std { + template + class set; + + template + bool operator==(const set& x, + const set& y); + + template + bool operator< (const set& x, + const set& y); + + template + bool operator!=(const set& x, + const set& y); + + template + bool operator> (const set& x, + const set& y); + + template + bool operator>=(const set& x, + const set& y); + + template + bool operator<=(const set& x, + const set& y); + + template + void swap(set& x, + set& y); + + template + class multiset; + + template + bool operator==(const multiset& x, + const multiset& y); + + template + bool operator< (const multiset& x, + const multiset& y); + + template + bool operator!=(const multiset& x, + const multiset& y); + + template + bool operator> (const multiset& x, + const multiset& y); + + template + bool operator>=(const multiset& x, + const multiset& y); + + template + bool operator<=(const multiset& x, + const multiset& y); + + template + void swap(multiset& x, + multiset& y); +} diff --git a/libstdc++-v3/testsuite/23_containers/headers/stack/synopsis.cc b/libstdc++-v3/testsuite/23_containers/headers/stack/synopsis.cc new file mode 100644 index 000000000..1f7b5eea8 --- /dev/null +++ b/libstdc++-v3/testsuite/23_containers/headers/stack/synopsis.cc @@ -0,0 +1,48 @@ +// { dg-do compile } + +// Copyright (C) 2007, 2009 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 3, 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 COPYING3. If not see +// . + +#include + +namespace std { + template class stack; + + template + bool operator==(const stack& x, + const stack& y); + + template + bool operator< (const stack& x, + const stack& y); + + template + bool operator!=(const stack& x, + const stack& y); + + template + bool operator> (const stack& x, + const stack& y); + + template + bool operator>=(const stack& x, + const stack& y); + + template + bool operator<=(const stack& x, + const stack& y); +} diff --git a/libstdc++-v3/testsuite/23_containers/headers/tuple/std_c++0x_neg.cc b/libstdc++-v3/testsuite/23_containers/headers/tuple/std_c++0x_neg.cc new file mode 100644 index 000000000..0a2e073a5 --- /dev/null +++ b/libstdc++-v3/testsuite/23_containers/headers/tuple/std_c++0x_neg.cc @@ -0,0 +1,26 @@ +// { dg-do compile } +// { dg-options "-std=gnu++98" } + +// Copyright (C) 2007, 2009 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 3, 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 COPYING3. If not see +// . + +#include + +// { dg-error "upcoming ISO" "" { target *-*-* } 32 } + + + diff --git a/libstdc++-v3/testsuite/23_containers/headers/tuple/types_std_c++0x.cc b/libstdc++-v3/testsuite/23_containers/headers/tuple/types_std_c++0x.cc new file mode 100644 index 000000000..774594570 --- /dev/null +++ b/libstdc++-v3/testsuite/23_containers/headers/tuple/types_std_c++0x.cc @@ -0,0 +1,26 @@ +// { dg-options "-std=gnu++0x" } +// { dg-do compile } + +// Copyright (C) 2007, 2009 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 3, 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 COPYING3. If not see +// . + +#include + +namespace gnu +{ + using std::ignore; +} diff --git a/libstdc++-v3/testsuite/23_containers/headers/unordered_map/std_c++0x_neg.cc b/libstdc++-v3/testsuite/23_containers/headers/unordered_map/std_c++0x_neg.cc new file mode 100644 index 000000000..0b32304ca --- /dev/null +++ b/libstdc++-v3/testsuite/23_containers/headers/unordered_map/std_c++0x_neg.cc @@ -0,0 +1,26 @@ +// { dg-do compile } +// { dg-options "-std=gnu++98" } + +// Copyright (C) 2007, 2009 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 3, 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 COPYING3. If not see +// . + +#include + +// { dg-error "upcoming ISO" "" { target *-*-* } 32 } + + + diff --git a/libstdc++-v3/testsuite/23_containers/headers/unordered_set/std_c++0x_neg.cc b/libstdc++-v3/testsuite/23_containers/headers/unordered_set/std_c++0x_neg.cc new file mode 100644 index 000000000..bc6963c80 --- /dev/null +++ b/libstdc++-v3/testsuite/23_containers/headers/unordered_set/std_c++0x_neg.cc @@ -0,0 +1,26 @@ +// { dg-do compile } +// { dg-options "-std=gnu++98" } + +// Copyright (C) 2007, 2009 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 3, 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 COPYING3. If not see +// . + +#include + +// { dg-error "upcoming ISO" "" { target *-*-* } 32 } + + + diff --git a/libstdc++-v3/testsuite/23_containers/headers/vector/synopsis.cc b/libstdc++-v3/testsuite/23_containers/headers/vector/synopsis.cc new file mode 100644 index 000000000..e543e8fd3 --- /dev/null +++ b/libstdc++-v3/testsuite/23_containers/headers/vector/synopsis.cc @@ -0,0 +1,81 @@ +// { dg-do compile } +// { dg-require-normal-mode "" } + +// Copyright (C) 2007, 2008, 2009, 2010 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 3, 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 COPYING3. If not see +// . + +#include + +namespace std { + template class vector; + + template + bool operator==(const vector& x, + const vector& y); + + template + bool operator< (const vector& x, + const vector& y); + + template + bool operator!=(const vector& x, + const vector& y); + + template + bool operator> (const vector& x, + const vector& y); + + template + bool operator>=(const vector& x, + const vector& y); + + template + bool operator<=(const vector& x, + const vector& y); + + template + void swap(vector& x, vector& y); + + template class vector; + + template + bool operator==(const vector& x, + const vector& y); + + template + bool operator< (const vector& x, + const vector& y); + + template + bool operator!=(const vector& x, + const vector& y); + + template + bool operator> (const vector& x, + const vector& y); + + template + bool operator>=(const vector& x, + const vector& y); + + template + bool operator<=(const vector& x, + const vector& y); + + template + void swap(vector& x, vector& y); +} -- cgit v1.2.3