public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [v3] Tweak to testcases
@ 2011-05-12  8:43 Paolo Carlini
  0 siblings, 0 replies; only message in thread
From: Paolo Carlini @ 2011-05-12  8:43 UTC (permalink / raw)
  To: Gcc Patch List; +Cc: libstdc++

[-- Attachment #1: Type: text/plain, Size: 91 bytes --]

Hi,

I committed this small tweak to two recent testcases of mine.

Paolo.

//////////////

[-- Attachment #2: CL --]
[-- Type: text/plain, Size: 210 bytes --]

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.

[-- Attachment #3: patchlet --]
[-- Type: text/plain, Size: 1710 bytes --]

Index: testsuite/26_numerics/headers/cmath/overloads_c++0x_neg.cc
===================================================================
--- testsuite/26_numerics/headers/cmath/overloads_c++0x_neg.cc	(revision 173683)
+++ testsuite/26_numerics/headers/cmath/overloads_c++0x_neg.cc	(working copy)
@@ -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::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: testsuite/tr1/8_c_compatibility/cmath/overloads_neg.cc
===================================================================
--- testsuite/tr1/8_c_compatibility/cmath/overloads_neg.cc	(revision 173683)
+++ testsuite/tr1/8_c_compatibility/cmath/overloads_neg.cc	(working copy)
@@ -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::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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-05-11 22:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-12  8:43 [v3] Tweak to testcases Paolo Carlini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).