From a9c70c222668111f1e5924c5a383f7d10057866d Mon Sep 17 00:00:00 2001 From: Michael Meissner Date: Wed, 27 Jan 1999 11:49:36 +0000 Subject: [PATCH] Add new test From-SVN: r24888 --- gcc/testsuite/gcc.c-torture/ChangeLog | 2 +- .../gcc.c-torture/execute/990127-2.c | 20 +++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 gcc/testsuite/gcc.c-torture/execute/990127-2.c diff --git a/gcc/testsuite/gcc.c-torture/ChangeLog b/gcc/testsuite/gcc.c-torture/ChangeLog index 32f55ab7697..abecc17003f 100644 --- a/gcc/testsuite/gcc.c-torture/ChangeLog +++ b/gcc/testsuite/gcc.c-torture/ChangeLog @@ -1,6 +1,6 @@ 1999-01-27 Michael Meissner - * execute/990127-1.c: New test. + * execute/990127-{1,2}.c: New tests. 1998-12-14 Nick Clifton diff --git a/gcc/testsuite/gcc.c-torture/execute/990127-2.c b/gcc/testsuite/gcc.c-torture/execute/990127-2.c new file mode 100644 index 00000000000..0d0f495124a --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/execute/990127-2.c @@ -0,0 +1,20 @@ +void +fpEq (double x, double y) +{ + if (x != y) + abort (); +} + +void +fpTest (double x, double y) +{ + double result1 = (35.7 * 100.0) / 45.0; + double result2 = (x * 100.0) / y; + fpEq (result1, result2); +} + +main () +{ + fpTest (35.7, 45.0); + exit (0); +} -- 2.30.2