diff options
author | Jakub Jelinek <jakub@redhat.com> | 2000-11-22 17:37:24 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2000-11-22 17:37:24 +0100 |
commit | e5a7acddf687a7c538d53108942ff3d0161ef6aa (patch) | |
tree | d68c8a5b0538916a2eac178a16d0f122c20201d7 /gcc | |
parent | ed5db764d505f159486e18eacfc3b7a778171bb8 (diff) | |
download | gcc-e5a7acddf687a7c538d53108942ff3d0161ef6aa.zip gcc-e5a7acddf687a7c538d53108942ff3d0161ef6aa.tar.gz gcc-e5a7acddf687a7c538d53108942ff3d0161ef6aa.tar.bz2 |
* gcc.c-torture/execute/ieee/20001122-1.c: New test.
From-SVN: r37657
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/testsuite/gcc.c-torture/execute/ieee/20001122-1.c | 22 |
2 files changed, 26 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 6804405..9ff1d8f 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2000-11-22 Jakub Jelinek <jakub@redhat.com> + + * gcc.c-torture/execute/ieee/20001122-1.c: New test. + 2000-11-22 Hans-Peter Nilsson <hp@bitrange.com> * lib/gcc-dg.exp: load_lib scanasm.exp. diff --git a/gcc/testsuite/gcc.c-torture/execute/ieee/20001122-1.c b/gcc/testsuite/gcc.c-torture/execute/ieee/20001122-1.c new file mode 100644 index 0000000..fd7e702 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/execute/ieee/20001122-1.c @@ -0,0 +1,22 @@ +volatile double a, *p; + +int main () +{ + double c, d; + volatile double b; + + d = 1.0; + p = &b; + do + { + c = d; + d = c * 0.5; + b = 1 + d; + } while (b != 1.0); + + a = 1.0 + c; + if (a == 1.0) + abort(); + + exit (0); +} |