diff options
author | Jakub Jelinek <jakub@redhat.com> | 2000-11-20 16:22:40 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2000-11-20 16:22:40 +0100 |
commit | 462ef1e15017f170e71a73d8b76ae587974e3b9d (patch) | |
tree | c7d705cb0597e770d9f63346d1f36755ec1531df /gcc | |
parent | 8d50dfb831c0c6157c1aad7080eeeaf0c7de1a0d (diff) | |
download | gcc-462ef1e15017f170e71a73d8b76ae587974e3b9d.zip gcc-462ef1e15017f170e71a73d8b76ae587974e3b9d.tar.gz gcc-462ef1e15017f170e71a73d8b76ae587974e3b9d.tar.bz2 |
* gcc.dg/20001117-1.c: New test.
From-SVN: r37584
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/20001117-1.c | 15 |
2 files changed, 19 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index bbc145a..2db948f 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2000-11-20 Jakub Jelinek <jakub@redhat.com> + + * gcc.dg/20001117-1.c: New test. + 2000-11-18 Richard Henderson <rth@redhat.com> * gcc.c-torture/execute/nestfunc-3.c (main): Mask result to 32 bits. diff --git a/gcc/testsuite/gcc.dg/20001117-1.c b/gcc/testsuite/gcc.dg/20001117-1.c new file mode 100644 index 0000000..7266b01 --- /dev/null +++ b/gcc/testsuite/gcc.dg/20001117-1.c @@ -0,0 +1,15 @@ +/* { dg-do run } */ +/* { dg-options "-O2 -finstrument-functions" } */ + +double +foo (double a, double b) +{ + double c; + if (0.0 < a) + c = a; + else if (b > 0.0) + c = 0.0; + else + return 0; + return 2.0 * (b - c); +} |