From 79b9f413ce126dd70a72d0cc87b721c1b705b4f0 Mon Sep 17 00:00:00 2001 From: "Kaveh R. Ghazi" Date: Thu, 22 Apr 2010 15:13:51 +0000 Subject: builtin-cproj-3.c: Rename and move ... * gcc.dg/torture/builtin-cproj-3.c: Rename and move ... * gcc.dg/cproj-fails-with-broken-glibc.c: ... to here. From-SVN: r158647 --- gcc/testsuite/ChangeLog | 5 +++++ .../gcc.dg/cproj-fails-with-broken-glibc.c | 25 ++++++++++++++++++++++ gcc/testsuite/gcc.dg/torture/builtin-cproj-3.c | 25 ---------------------- 3 files changed, 30 insertions(+), 25 deletions(-) create mode 100644 gcc/testsuite/gcc.dg/cproj-fails-with-broken-glibc.c delete mode 100644 gcc/testsuite/gcc.dg/torture/builtin-cproj-3.c (limited to 'gcc/testsuite') diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 6aecb02..926e6e3 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2010-04-22 Kaveh R. Ghazi + + * gcc.dg/torture/builtin-cproj-3.c: Rename and move ... + * gcc.dg/cproj-fails-with-broken-glibc.c: ... to here. + 2010-04-22 Alexander Monakov * gfortran.dg/reassoc_6.f: New testcase. diff --git a/gcc/testsuite/gcc.dg/cproj-fails-with-broken-glibc.c b/gcc/testsuite/gcc.dg/cproj-fails-with-broken-glibc.c new file mode 100644 index 0000000..fe143b9 --- /dev/null +++ b/gcc/testsuite/gcc.dg/cproj-fails-with-broken-glibc.c @@ -0,0 +1,25 @@ +/* Copyright (C) 2010 Free Software Foundation. + + Check the runtime behavior of the C library's cproj() function and + whether it follows the standard. Versions of GLIBC through 2.11.1 + had an incorrect implementation which will conflict with GCC's + builtin cproj(). GLIBC 2.12+ should be okay. + + Origin: Kaveh R. Ghazi, April 20, 2010. */ + +/* { dg-do run } */ +/* { dg-options "-fno-builtin-cproj" } */ +/* { dg-add-options c99_runtime } */ +/* { dg-require-effective-target c99_runtime } */ + +extern void abort(void); +extern void exit(int); +double _Complex cproj(double _Complex); + +int main (void) +{ + if (cproj (2+3i) != 2+3i) + abort(); + + exit(0); +} diff --git a/gcc/testsuite/gcc.dg/torture/builtin-cproj-3.c b/gcc/testsuite/gcc.dg/torture/builtin-cproj-3.c deleted file mode 100644 index fe143b9..0000000 --- a/gcc/testsuite/gcc.dg/torture/builtin-cproj-3.c +++ /dev/null @@ -1,25 +0,0 @@ -/* Copyright (C) 2010 Free Software Foundation. - - Check the runtime behavior of the C library's cproj() function and - whether it follows the standard. Versions of GLIBC through 2.11.1 - had an incorrect implementation which will conflict with GCC's - builtin cproj(). GLIBC 2.12+ should be okay. - - Origin: Kaveh R. Ghazi, April 20, 2010. */ - -/* { dg-do run } */ -/* { dg-options "-fno-builtin-cproj" } */ -/* { dg-add-options c99_runtime } */ -/* { dg-require-effective-target c99_runtime } */ - -extern void abort(void); -extern void exit(int); -double _Complex cproj(double _Complex); - -int main (void) -{ - if (cproj (2+3i) != 2+3i) - abort(); - - exit(0); -} -- cgit v1.1