mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-15 22:51:38 +08:00
* gcc.dg/20001117-1.c: New test.
From-SVN: r37584
This commit is contained in:
parent
8d50dfb831
commit
462ef1e150
@ -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.
|
||||
|
15
gcc/testsuite/gcc.dg/20001117-1.c
Normal file
15
gcc/testsuite/gcc.dg/20001117-1.c
Normal 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);
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user