diff options
-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); +} |