std_c++0x_neg.cc: Add -std=c++98.

* testsuite/19_diagnostics/headers/system_error/std_c++0x_neg.cc: Add -std=c++98.
	* testsuite/20_util/auto_ptr/1.cc: Add -std=c++98.
	* testsuite/20_util/auto_ptr/2.cc: Add -std=c++98.
	* testsuite/20_util/auto_ptr/3.cc: Add -std=c++98.
	* testsuite/20_util/auto_ptr/4.cc: Add -std=c++98.
	* testsuite/20_util/auto_ptr/5.cc: Add -std=c++98.
	* testsuite/20_util/auto_ptr/6.cc: Add -std=c++98.
	* testsuite/20_util/auto_ptr/7.cc: Add -std=c++98.
	* testsuite/20_util/auto_ptr/3946.cc: Add -std=c++98.
	* testsuite/20_util/auto_ptr/assign_neg.cc: Add -std=c++98.
	* testsuite/20_util/auto_ptr/requirements/explicit_instantiation/1.cc: Likewise.
	* testsuite/20_util/headers/functional/synopsis.cc: Add -Wno-deprecated.
	* testsuite/23_containers/deque/requirements/dr438/assign_neg.cc: Adjust expected errors.
	* testsuite/23_containers/deque/requirements/dr438/constructor_1_neg.cc: Likewise.
	* testsuite/23_containers/deque/requirements/dr438/constructor_2_neg.cc: Likewise.
	* testsuite/23_containers/deque/requirements/dr438/insert_neg.cc: Likewise.
	* testsuite/23_containers/list/requirements/dr438/assign_neg.cc: Likewise.
	* testsuite/23_containers/list/requirements/dr438/constructor_1_neg.cc: Likewise.
	* testsuite/23_containers/list/requirements/dr438/constructor_2_neg.cc: Likewise.
	* testsuite/23_containers/list/requirements/dr438/insert_neg.cc: Likewise.
	* testsuite/23_containers/vector/requirements/dr438/assign_neg.cc: Likewise.
	* testsuite/23_containers/vector/requirements/dr438/constructor_1_neg.cc: Likewise.
	* testsuite/23_containers/vector/requirements/dr438/constructor_2_neg.cc: Likewise.
	* testsuite/23_containers/vector/requirements/dr438/insert_neg.cc:  Likewise.
	* testsuite/ext/array_allocator/1.cc: Add -Wno-deprecated.
	* testsuite/ext/array_allocator/2.cc: Add -Wno-deprecated.
	* testsuite/ext/array_allocator/26875.cc: Add -Wno-deprecated.
	* testsuite/ext/array_allocator/3.cc: Add -Wno-deprecated.
	* testsuite/ext/array_allocator/check_allocate_max_size.cc: Add -Wno-deprecated.
	* testsuite/ext/array_allocator/check_deallocate_null.cc: Add -Wno-deprecated.
	* testsuite/ext/array_allocator/check_delete.cc: Add -Wno-deprecated.
	* testsuite/ext/array_allocator/check_new.cc: Add -Wno-deprecated.
	* testsuite/ext/profile/mutex_extensions_neg.cc: Prune follow-on error.
	* testsuite/tr1/2_general_utilities/shared_ptr/assign/auto_ptr.cc: Add -std=c++98.
	* testsuite/tr1/2_general_utilities/shared_ptr/assign/auto_ptr_neg.cc: Add -std=c++98.
	* testsuite/tr1/2_general_utilities/shared_ptr/assign/auto_ptr_rvalue_neg.cc: Add -std=c++98.
	* testsuite/tr1/2_general_utilities/shared_ptr/cons/43820_neg.cc: Add -std=c++98 -fno-show-column.
	* testsuite/tr1/2_general_utilities/shared_ptr/cons/auto_ptr.cc: Add -std=c++98.
	* testsuite/tr1/2_general_utilities/shared_ptr/cons/auto_ptr_neg.cc: Add -std=c++98.
	* testsuite/tr1/6_containers/utility/pair.cc: Add -std=c++98.
	* testsuite/tr1/8_c_compatibility/cmath/pow_cmath.cc: Add -std=c++98.

From-SVN: r222965
This commit is contained in:
Jason Merrill 2015-05-09 00:50:30 -04:00 committed by Jason Merrill
parent 6cd9cb89eb
commit f8356d52f2
42 changed files with 121 additions and 24 deletions

View File

@ -1,5 +1,47 @@
2015-05-08 Jason Merrill <jason@redhat.com> 2015-05-08 Jason Merrill <jason@redhat.com>
* testsuite/19_diagnostics/headers/system_error/std_c++0x_neg.cc: Add -std=c++98.
* testsuite/20_util/auto_ptr/1.cc: Add -std=c++98.
* testsuite/20_util/auto_ptr/2.cc: Add -std=c++98.
* testsuite/20_util/auto_ptr/3.cc: Add -std=c++98.
* testsuite/20_util/auto_ptr/4.cc: Add -std=c++98.
* testsuite/20_util/auto_ptr/5.cc: Add -std=c++98.
* testsuite/20_util/auto_ptr/6.cc: Add -std=c++98.
* testsuite/20_util/auto_ptr/7.cc: Add -std=c++98.
* testsuite/20_util/auto_ptr/3946.cc: Add -std=c++98.
* testsuite/20_util/auto_ptr/assign_neg.cc: Add -std=c++98.
* testsuite/20_util/auto_ptr/requirements/explicit_instantiation/1.cc: Likewise.
* testsuite/20_util/headers/functional/synopsis.cc: Add -Wno-deprecated.
* testsuite/23_containers/deque/requirements/dr438/assign_neg.cc: Adjust expected errors.
* testsuite/23_containers/deque/requirements/dr438/constructor_1_neg.cc: Likewise.
* testsuite/23_containers/deque/requirements/dr438/constructor_2_neg.cc: Likewise.
* testsuite/23_containers/deque/requirements/dr438/insert_neg.cc: Likewise.
* testsuite/23_containers/list/requirements/dr438/assign_neg.cc: Likewise.
* testsuite/23_containers/list/requirements/dr438/constructor_1_neg.cc: Likewise.
* testsuite/23_containers/list/requirements/dr438/constructor_2_neg.cc: Likewise.
* testsuite/23_containers/list/requirements/dr438/insert_neg.cc: Likewise.
* testsuite/23_containers/vector/requirements/dr438/assign_neg.cc: Likewise.
* testsuite/23_containers/vector/requirements/dr438/constructor_1_neg.cc: Likewise.
* testsuite/23_containers/vector/requirements/dr438/constructor_2_neg.cc: Likewise.
* testsuite/23_containers/vector/requirements/dr438/insert_neg.cc: Likewise.
* testsuite/ext/array_allocator/1.cc: Add -Wno-deprecated.
* testsuite/ext/array_allocator/2.cc: Add -Wno-deprecated.
* testsuite/ext/array_allocator/26875.cc: Add -Wno-deprecated.
* testsuite/ext/array_allocator/3.cc: Add -Wno-deprecated.
* testsuite/ext/array_allocator/check_allocate_max_size.cc: Add -Wno-deprecated.
* testsuite/ext/array_allocator/check_deallocate_null.cc: Add -Wno-deprecated.
* testsuite/ext/array_allocator/check_delete.cc: Add -Wno-deprecated.
* testsuite/ext/array_allocator/check_new.cc: Add -Wno-deprecated.
* testsuite/ext/profile/mutex_extensions_neg.cc: Prune follow-on error.
* testsuite/tr1/2_general_utilities/shared_ptr/assign/auto_ptr.cc: Add -std=c++98.
* testsuite/tr1/2_general_utilities/shared_ptr/assign/auto_ptr_neg.cc: Add -std=c++98.
* testsuite/tr1/2_general_utilities/shared_ptr/assign/auto_ptr_rvalue_neg.cc: Add -std=c++98.
* testsuite/tr1/2_general_utilities/shared_ptr/cons/43820_neg.cc: Add -std=c++98 -fno-show-column.
* testsuite/tr1/2_general_utilities/shared_ptr/cons/auto_ptr.cc: Add -std=c++98.
* testsuite/tr1/2_general_utilities/shared_ptr/cons/auto_ptr_neg.cc: Add -std=c++98.
* testsuite/tr1/6_containers/utility/pair.cc: Add -std=c++98.
* testsuite/tr1/8_c_compatibility/cmath/pow_cmath.cc: Add -std=c++98.
* src/c++98/Makefile.am (AM_CXXFLAGS): Add -std=gnu++98. * src/c++98/Makefile.am (AM_CXXFLAGS): Add -std=gnu++98.
* src/c++98/Makefile.in: Regenerate. * src/c++98/Makefile.in: Regenerate.
* src/Makefile.am (AM_CXXFLAGS): Add -std=gnu++98. * src/Makefile.am (AM_CXXFLAGS): Add -std=gnu++98.

View File

@ -1,4 +1,5 @@
// { dg-do compile } // { dg-do compile }
// { dg-options "-std=gnu++98" }
// Copyright (C) 2007-2015 Free Software Foundation, Inc. // Copyright (C) 2007-2015 Free Software Foundation, Inc.
// //

View File

@ -17,6 +17,8 @@
// 20.4.5 Template class auto_ptr [lib.auto.ptr] // 20.4.5 Template class auto_ptr [lib.auto.ptr]
// { dg-options "-std=c++98" }
#include <memory> #include <memory>
#include <testsuite_hooks.h> #include <testsuite_hooks.h>

View File

@ -17,6 +17,8 @@
// 20.4.5 Template class auto_ptr [lib.auto.ptr] // 20.4.5 Template class auto_ptr [lib.auto.ptr]
// { dg-options "-std=c++98" }
#include <memory> #include <memory>
#include <testsuite_hooks.h> #include <testsuite_hooks.h>

View File

@ -17,6 +17,8 @@
// 20.4.5 Template class auto_ptr [lib.auto.ptr] // 20.4.5 Template class auto_ptr [lib.auto.ptr]
// { dg-options "-std=c++98" }
#include <memory> #include <memory>
#include <testsuite_hooks.h> #include <testsuite_hooks.h>

View File

@ -17,6 +17,8 @@
// 20.4.5 Template class auto_ptr [lib.auto.ptr] // 20.4.5 Template class auto_ptr [lib.auto.ptr]
// { dg-options "-std=c++98" }
#include <memory> #include <memory>
#include <testsuite_hooks.h> #include <testsuite_hooks.h>

View File

@ -17,6 +17,8 @@
// 20.4.5 Template class auto_ptr [lib.auto.ptr] // 20.4.5 Template class auto_ptr [lib.auto.ptr]
// { dg-options "-std=c++98" }
#include <memory> #include <memory>
#include <testsuite_hooks.h> #include <testsuite_hooks.h>

View File

@ -17,6 +17,8 @@
// 20.4.5 Template class auto_ptr [lib.auto.ptr] // 20.4.5 Template class auto_ptr [lib.auto.ptr]
// { dg-options "-std=c++98" }
#include <memory> #include <memory>
#include <testsuite_hooks.h> #include <testsuite_hooks.h>

View File

@ -17,6 +17,8 @@
// 20.4.5 Template class auto_ptr [lib.auto.ptr] // 20.4.5 Template class auto_ptr [lib.auto.ptr]
// { dg-options "-std=c++98" }
#include <memory> #include <memory>
#include <testsuite_hooks.h> #include <testsuite_hooks.h>

View File

@ -17,6 +17,8 @@
// 20.4.5 Template class auto_ptr [lib.auto.ptr] // 20.4.5 Template class auto_ptr [lib.auto.ptr]
// { dg-options "-std=c++98" }
#include <memory> #include <memory>
#include <testsuite_hooks.h> #include <testsuite_hooks.h>

View File

@ -19,6 +19,8 @@
// 20.4.5 Template class auto_ptr negative tests [lib.auto.ptr] // 20.4.5 Template class auto_ptr negative tests [lib.auto.ptr]
// { dg-options "-std=c++98" }
#include <memory> #include <memory>
#include <testsuite_hooks.h> #include <testsuite_hooks.h>

View File

@ -20,6 +20,8 @@
// This file tests explicit instantiation of library containers. // This file tests explicit instantiation of library containers.
// { dg-options "-std=c++98" }
#include <memory> #include <memory>
template class std::auto_ptr<int>; template class std::auto_ptr<int>;

View File

@ -17,6 +17,8 @@
// with this library; see the file COPYING3. If not see // with this library; see the file COPYING3. If not see
// <http://www.gnu.org/licenses/>. // <http://www.gnu.org/licenses/>.
// { dg-options "-Wno-deprecated" }
#include <functional> #include <functional>
namespace std { namespace std {

View File

@ -18,7 +18,7 @@
// <http://www.gnu.org/licenses/>. // <http://www.gnu.org/licenses/>.
// { dg-do compile } // { dg-do compile }
// { dg-error "no matching" "" { target *-*-* } 1881 } // { dg-prune-output 1881 }
#include <deque> #include <deque>
@ -30,5 +30,5 @@ struct A
void f() void f()
{ {
std::deque<A> d; std::deque<A> d;
d.assign(10, 1); d.assign(10, 1); // { dg-error "no match|here" }
} }

View File

@ -18,11 +18,11 @@
// <http://www.gnu.org/licenses/>. // <http://www.gnu.org/licenses/>.
// { dg-do compile } // { dg-do compile }
// { dg-error "no matching" "" { target *-*-* } 1814 } // { dg-prune-output 1814 }
#include <deque> #include <deque>
void f() void f()
{ {
std::deque<std::deque<int> > d(10, 1); std::deque<std::deque<int> > d(10, 1); // { dg-error "here|no match" }
} }

View File

@ -18,12 +18,12 @@
// <http://www.gnu.org/licenses/>. // <http://www.gnu.org/licenses/>.
// { dg-do compile } // { dg-do compile }
// { dg-error "no matching" "" { target *-*-* } 1814 } // { dg-prune-output 1814 }
#include <deque> #include <deque>
#include <utility> #include <utility>
void f() void f()
{ {
std::deque<std::deque<std::pair<char, char> > > d('a', 'b'); std::deque<std::deque<std::pair<char, char> > > d('a', 'b'); // { dg-error "here|no match" }
} }

View File

@ -18,7 +18,7 @@
// <http://www.gnu.org/licenses/>. // <http://www.gnu.org/licenses/>.
// { dg-do compile } // { dg-do compile }
// { dg-error "no matching" "" { target *-*-* } 1965 } // { dg-prune-output 1965 }
#include <deque> #include <deque>
@ -30,5 +30,5 @@ struct A
void f() void f()
{ {
std::deque<A> d; std::deque<A> d;
d.insert(d.begin(), 10, 1); d.insert(d.begin(), 10, 1); // { dg-error "here|no match" }
} }

View File

@ -18,7 +18,7 @@
// <http://www.gnu.org/licenses/>. // <http://www.gnu.org/licenses/>.
// { dg-do compile } // { dg-do compile }
// { dg-error "no matching" "" { target *-*-* } 1730 } // { dg-prune-output 1730 }
#include <list> #include <list>
@ -31,5 +31,5 @@ void f()
{ {
typedef std::list<A> list_type; typedef std::list<A> list_type;
list_type l; list_type l;
l.assign(10, 1); l.assign(10, 1); // { dg-error "here|no match" }
} }

View File

@ -18,12 +18,12 @@
// <http://www.gnu.org/licenses/>. // <http://www.gnu.org/licenses/>.
// { dg-do compile } // { dg-do compile }
// { dg-error "no matching" "" { target *-*-* } 1682 } // { dg-prune-output 1682 }
#include <list> #include <list>
void f() void f()
{ {
typedef std::list<std::list<int> > list_type; typedef std::list<std::list<int> > list_type;
list_type l(10, 1); list_type l(10, 1); // { dg-error "here|no match" }
} }

View File

@ -18,7 +18,7 @@
// <http://www.gnu.org/licenses/>. // <http://www.gnu.org/licenses/>.
// { dg-do compile } // { dg-do compile }
// { dg-error "no matching" "" { target *-*-* } 1682 } // { dg-prune-output 1682 }
#include <list> #include <list>
#include <utility> #include <utility>
@ -26,5 +26,5 @@
void f() void f()
{ {
typedef std::list<std::list<std::pair<char, char> > > list_type; typedef std::list<std::list<std::pair<char, char> > > list_type;
list_type l('a', 'b'); list_type l('a', 'b'); // { dg-error "here|no match" }
} }

View File

@ -18,7 +18,7 @@
// <http://www.gnu.org/licenses/>. // <http://www.gnu.org/licenses/>.
// { dg-do compile } // { dg-do compile }
// { dg-error "no matching" "" { target *-*-* } 1682 } // { dg-prune-output 1682 }
#include <list> #include <list>
@ -31,5 +31,5 @@ void f()
{ {
typedef std::list<A> list_type; typedef std::list<A> list_type;
list_type l; list_type l;
l.insert(l.begin(), 10, 1); l.insert(l.begin(), 10, 1); // { dg-error "here|no match" }
} }

View File

@ -18,7 +18,7 @@
// <http://www.gnu.org/licenses/>. // <http://www.gnu.org/licenses/>.
// { dg-do compile } // { dg-do compile }
// { dg-error "no matching" "" { target *-*-* } 1326 } // { dg-prune-output 1326 }
#include <vector> #include <vector>
@ -30,5 +30,5 @@ struct A
void f() void f()
{ {
std::vector<A> v; std::vector<A> v;
v.assign(10, 1); v.assign(10, 1); // { dg-error "here|no match" }
} }

View File

@ -18,11 +18,11 @@
// <http://www.gnu.org/licenses/>. // <http://www.gnu.org/licenses/>.
// { dg-do compile } // { dg-do compile }
// { dg-error "no matching" "" { target *-*-* } 1252 } // { dg-prune-output 1252 }
#include <vector> #include <vector>
void f() void f()
{ {
std::vector<std::vector<int> > v(10, 1); std::vector<std::vector<int> > v(10, 1); // { dg-error "here|no match" }
} }

View File

@ -18,12 +18,12 @@
// <http://www.gnu.org/licenses/>. // <http://www.gnu.org/licenses/>.
// { dg-do compile } // { dg-do compile }
// { dg-error "no matching" "" { target *-*-* } 1252 } // { dg-prune-output 1252 }
#include <vector> #include <vector>
#include <utility> #include <utility>
void f() void f()
{ {
std::vector<std::vector<std::pair<char, char> > > v('a', 'b'); std::vector<std::vector<std::pair<char, char> > > v('a', 'b'); // { dg-error "here|no match" }
} }

View File

@ -18,7 +18,7 @@
// <http://www.gnu.org/licenses/>. // <http://www.gnu.org/licenses/>.
// { dg-do compile } // { dg-do compile }
// { dg-error "no matching" "" { target *-*-* } 1367 } // { dg-prune-output 1367 }
#include <vector> #include <vector>
@ -30,5 +30,5 @@ struct A
void f() void f()
{ {
std::vector<A> v; std::vector<A> v;
v.insert(v.begin(), 10, 1); v.insert(v.begin(), 10, 1); // { dg-error "here|no match" }
} }

View File

@ -15,6 +15,7 @@
// with this library; see the file COPYING3. If not see // with this library; see the file COPYING3. If not see
// <http://www.gnu.org/licenses/>. // <http://www.gnu.org/licenses/>.
// { dg-options "-Wno-deprecated" }
#include <ext/vstring.h> #include <ext/vstring.h>
#include <ext/array_allocator.h> #include <ext/array_allocator.h>

View File

@ -15,6 +15,7 @@
// with this library; see the file COPYING3. If not see // with this library; see the file COPYING3. If not see
// <http://www.gnu.org/licenses/>. // <http://www.gnu.org/licenses/>.
// { dg-options "-Wno-deprecated" }
#include <iostream> #include <iostream>
#include <ext/vstring.h> #include <ext/vstring.h>

View File

@ -16,6 +16,8 @@
// with this library; see the file COPYING3. If not see // with this library; see the file COPYING3. If not see
// <http://www.gnu.org/licenses/>. // <http://www.gnu.org/licenses/>.
// { dg-options "-Wno-deprecated" }
#include <ext/array_allocator.h> #include <ext/array_allocator.h>
// libstdc++/26875 // libstdc++/26875

View File

@ -15,6 +15,7 @@
// with this library; see the file COPYING3. If not see // with this library; see the file COPYING3. If not see
// <http://www.gnu.org/licenses/>. // <http://www.gnu.org/licenses/>.
// { dg-options "-Wno-deprecated" }
#include <ext/vstring.h> #include <ext/vstring.h>
#include <ext/array_allocator.h> #include <ext/array_allocator.h>

View File

@ -16,6 +16,8 @@
// with this library; see the file COPYING3. If not see // with this library; see the file COPYING3. If not see
// <http://www.gnu.org/licenses/>. // <http://www.gnu.org/licenses/>.
// { dg-options "-Wno-deprecated" }
// 20.4.1.1 allocator members // 20.4.1.1 allocator members
#include <ext/array_allocator.h> #include <ext/array_allocator.h>

View File

@ -16,6 +16,8 @@
// with this library; see the file COPYING3. If not see // with this library; see the file COPYING3. If not see
// <http://www.gnu.org/licenses/>. // <http://www.gnu.org/licenses/>.
// { dg-options "-Wno-deprecated" }
// 20.4.1.1 allocator members // 20.4.1.1 allocator members
#include <ext/array_allocator.h> #include <ext/array_allocator.h>

View File

@ -17,6 +17,8 @@
// with this library; see the file COPYING3. If not see // with this library; see the file COPYING3. If not see
// <http://www.gnu.org/licenses/>. // <http://www.gnu.org/licenses/>.
// { dg-options "-Wno-deprecated" }
// 20.4.1.1 allocator members // 20.4.1.1 allocator members
#include <cstdlib> #include <cstdlib>

View File

@ -17,6 +17,8 @@
// with this library; see the file COPYING3. If not see // with this library; see the file COPYING3. If not see
// <http://www.gnu.org/licenses/>. // <http://www.gnu.org/licenses/>.
// { dg-options "-Wno-deprecated" }
// 20.4.1.1 allocator members // 20.4.1.1 allocator members
#include <cstdlib> #include <cstdlib>

View File

@ -26,3 +26,6 @@
#include <vector> #include <vector>
// { dg-error "multiple inlined namespaces" "" { target *-*-* } 322 } // { dg-error "multiple inlined namespaces" "" { target *-*-* } 322 }
// "template argument 1 is invalid"
// { dg-prune-output "tuple:993" }

View File

@ -17,6 +17,8 @@
// TR1 2.2.2 Template class shared_ptr [tr.util.smartptr.shared] // TR1 2.2.2 Template class shared_ptr [tr.util.smartptr.shared]
// { dg-options "-std=c++98" }
#include <tr1/memory> #include <tr1/memory>
#include <testsuite_hooks.h> #include <testsuite_hooks.h>

View File

@ -19,6 +19,8 @@
// TR1 2.2.2 Template class shared_ptr [tr.util.smartptr.shared] // TR1 2.2.2 Template class shared_ptr [tr.util.smartptr.shared]
// { dg-options "-std=c++98" }
#include <tr1/memory> #include <tr1/memory>
#include <testsuite_hooks.h> #include <testsuite_hooks.h>

View File

@ -19,6 +19,8 @@
// TR1 2.2.2 Template class shared_ptr [tr.util.smartptr.shared] // TR1 2.2.2 Template class shared_ptr [tr.util.smartptr.shared]
// { dg-options "-std=c++98" }
#include <tr1/memory> #include <tr1/memory>
#include <testsuite_hooks.h> #include <testsuite_hooks.h>

View File

@ -17,6 +17,8 @@
// with this library; see the file COPYING3. If not see // with this library; see the file COPYING3. If not see
// <http://www.gnu.org/licenses/>. // <http://www.gnu.org/licenses/>.
// { dg-options "-std=c++98 -fno-show-column" }
// 2.2.3 Class template shared_ptr [tr.util.smartptr.shared] // 2.2.3 Class template shared_ptr [tr.util.smartptr.shared]
#include <tr1/memory> #include <tr1/memory>

View File

@ -15,6 +15,8 @@
// with this library; see the file COPYING3. If not see // with this library; see the file COPYING3. If not see
// <http://www.gnu.org/licenses/>. // <http://www.gnu.org/licenses/>.
// { dg-options "-std=c++98" }
// TR1 2.2.2 Template class shared_ptr [tr.util.smartptr.shared] // TR1 2.2.2 Template class shared_ptr [tr.util.smartptr.shared]
#include <tr1/memory> #include <tr1/memory>

View File

@ -17,6 +17,8 @@
// with this library; see the file COPYING3. If not see // with this library; see the file COPYING3. If not see
// <http://www.gnu.org/licenses/>. // <http://www.gnu.org/licenses/>.
// { dg-options "-std=c++98" }
// TR1 2.2.2 Template class shared_ptr [tr.util.smartptr.shared] // TR1 2.2.2 Template class shared_ptr [tr.util.smartptr.shared]
#include <tr1/memory> #include <tr1/memory>

View File

@ -17,6 +17,8 @@
// with this library; see the file COPYING3. If not see // with this library; see the file COPYING3. If not see
// <http://www.gnu.org/licenses/>. // <http://www.gnu.org/licenses/>.
// { dg-options "-std=c++98" }
// tr1 additions to pair // tr1 additions to pair
#include <tr1/utility> #include <tr1/utility>

View File

@ -17,6 +17,8 @@
// with this library; see the file COPYING3. If not see // with this library; see the file COPYING3. If not see
// <http://www.gnu.org/licenses/>. // <http://www.gnu.org/licenses/>.
// { dg-options "-std=c++98" }
#include <cmath> #include <cmath>
using std::pow; using std::pow;
#include <tr1/cmath> #include <tr1/cmath>