From 93e0015e796cb222f0e605db7a81302003ed0491 Mon Sep 17 00:00:00 2001 From: Jeffrey A Law Date: Sun, 29 Aug 1999 21:48:53 +0000 Subject: [PATCH] * gcc.c-torture/execute/990829-1.c: New test. From-SVN: r28976 --- gcc/testsuite/ChangeLog | 1 + gcc/testsuite/gcc.c-torture/execute/990829-1.c | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 gcc/testsuite/gcc.c-torture/execute/990829-1.c diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 720751e034b..e4163b4f625 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,6 @@ Sun Aug 29 14:35:41 1999 Jeffrey A Law (law@cygnus.com) + * gcc.c-torture/execute/990829-1.c: New test. * gcc.c-torture/compile/990829-1.c: New test. 1999-08-27 Paul Burchard diff --git a/gcc/testsuite/gcc.c-torture/execute/990829-1.c b/gcc/testsuite/gcc.c-torture/execute/990829-1.c new file mode 100644 index 00000000000..82f81864594 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/execute/990829-1.c @@ -0,0 +1,15 @@ +double test (const double le, const double ri) +{ + double val = ( ri - le ) / ( ri * ( le + 1.0 ) ); + return val; +} + +int main () +{ + double retval; + + retval = test(1.0,2.0); + if (retval < 0.24 || retval > 0.26) + abort (); + exit (0); +}