* gcc.dg/20001117-1.c: New test.

From-SVN: r37584
This commit is contained in:
Jakub Jelinek 2000-11-20 16:22:40 +01:00 committed by Jakub Jelinek
parent 8d50dfb831
commit 462ef1e150
2 changed files with 19 additions and 0 deletions

View File

@ -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.

View File

@ -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);
}