From cddebdb7a8f75dca13c20a3d6d51c73069979031 Mon Sep 17 00:00:00 2001 From: Paolo Carlini Date: Wed, 11 May 2011 22:36:18 +0000 Subject: [PATCH] overloads_c++0x_neg.cc: Use dg-require-cmath. 2011-05-11 Paolo Carlini * testsuite/26_numerics/headers/cmath/overloads_c++0x_neg.cc: Use dg-require-cmath. * testsuite/tr1/8_c_compatibility/cmath/overloads_neg.cc: Likewise. From-SVN: r173684 --- libstdc++-v3/ChangeLog | 6 ++++++ .../26_numerics/headers/cmath/overloads_c++0x_neg.cc | 7 ++----- .../testsuite/tr1/8_c_compatibility/cmath/overloads_neg.cc | 5 +---- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 661fed45dad..9136fa6bddc 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,9 @@ +2011-05-11 Paolo Carlini + + * testsuite/26_numerics/headers/cmath/overloads_c++0x_neg.cc: Use + dg-require-cmath. + * testsuite/tr1/8_c_compatibility/cmath/overloads_neg.cc: Likewise. + 2011-05-11 François Dumont * include/ext/pb_ds/detail/resize_policy/ diff --git a/libstdc++-v3/testsuite/26_numerics/headers/cmath/overloads_c++0x_neg.cc b/libstdc++-v3/testsuite/26_numerics/headers/cmath/overloads_c++0x_neg.cc index 2d8862ead15..0433ee3f81a 100644 --- a/libstdc++-v3/testsuite/26_numerics/headers/cmath/overloads_c++0x_neg.cc +++ b/libstdc++-v3/testsuite/26_numerics/headers/cmath/overloads_c++0x_neg.cc @@ -1,5 +1,6 @@ -// { dg-options "-std=gnu++0x" } // { dg-do compile } +// { dg-options "-std=gnu++0x" } +// { dg-require-cmath "" } // Copyright (C) 2011 Free Software Foundation, Inc. // @@ -22,8 +23,6 @@ // libstdc++/48933 -#ifdef _GLIBCXX_USE_C99_MATH_TR1 - struct Foo { }; template Foo std::atan2(Foo, Foo); // { dg-error "not match" } @@ -61,5 +60,3 @@ template Foo std::scalbln(Foo, long); // { dg-error "not match" } template Foo std::scalbn(Foo, int); // { dg-error "not match" } template Foo std::tgamma(Foo); // { dg-error "not match" } template Foo std::trunc(Foo); // { dg-error "not match" } - -#endif diff --git a/libstdc++-v3/testsuite/tr1/8_c_compatibility/cmath/overloads_neg.cc b/libstdc++-v3/testsuite/tr1/8_c_compatibility/cmath/overloads_neg.cc index 174a81dc5f9..ae83a00b03d 100644 --- a/libstdc++-v3/testsuite/tr1/8_c_compatibility/cmath/overloads_neg.cc +++ b/libstdc++-v3/testsuite/tr1/8_c_compatibility/cmath/overloads_neg.cc @@ -1,4 +1,5 @@ // { dg-do compile } +// { dg-require-cmath "" } // Copyright (C) 2011 Free Software Foundation, Inc. // @@ -23,8 +24,6 @@ // libstdc++/48933 -#ifdef _GLIBCXX_USE_C99_MATH_TR1 - struct Foo { }; template Foo std::tr1::atan2(Foo, Foo); // { dg-error "not match" } @@ -62,5 +61,3 @@ template Foo std::tr1::scalbln(Foo, long); // { dg-error "not match" } template Foo std::tr1::scalbn(Foo, int); // { dg-error "not match" } template Foo std::tr1::tgamma(Foo); // { dg-error "not match" } template Foo std::tr1::trunc(Foo); // { dg-error "not match" } - -#endif -- 2.30.2