OSDN Git Service

2011-05-11 Paolo Carlini <paolo.carlini@oracle.com>
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 11 May 2011 22:36:18 +0000 (22:36 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 11 May 2011 22:36:18 +0000 (22:36 +0000)
* testsuite/26_numerics/headers/cmath/overloads_c++0x_neg.cc: Use
dg-require-cmath.
* testsuite/tr1/8_c_compatibility/cmath/overloads_neg.cc: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@173684 138bc75d-0d04-0410-961f-82ee72b054a4

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/26_numerics/headers/cmath/overloads_c++0x_neg.cc
libstdc++-v3/testsuite/tr1/8_c_compatibility/cmath/overloads_neg.cc

index 661fed4..9136fa6 100644 (file)
@@ -1,3 +1,9 @@
+2011-05-11  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       * 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  <francois.cppdevs@free.fr>
 
        * include/ext/pb_ds/detail/resize_policy/
index 2d8862e..0433ee3 100644 (file)
@@ -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>(Foo, Foo); // { dg-error "not match" }
@@ -61,5 +60,3 @@ template Foo std::scalbln<Foo>(Foo, long); // { dg-error "not match" }
 template Foo std::scalbn<Foo>(Foo, int); // { dg-error "not match" }
 template Foo std::tgamma<Foo>(Foo); // { dg-error "not match" }
 template Foo std::trunc<Foo>(Foo); // { dg-error "not match" }
-
-#endif
index 174a81d..ae83a00 100644 (file)
@@ -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>(Foo, Foo); // { dg-error "not match" }
@@ -62,5 +61,3 @@ template Foo std::tr1::scalbln<Foo>(Foo, long); // { dg-error "not match" }
 template Foo std::tr1::scalbn<Foo>(Foo, int); // { dg-error "not match" }
 template Foo std::tr1::tgamma<Foo>(Foo); // { dg-error "not match" }
 template Foo std::tr1::trunc<Foo>(Foo); // { dg-error "not match" }
-
-#endif