summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/20060425-2.c
blob: 2a5e131a1007684e3308640d7a4afe9814ba0b4b (plain)
1
2
3
4
5
6
7
8
9
10
/* { dg-do compile } */
/* { dg-options "-O2" } */

double
crashme (double v, double *p)
{
  if (v < 0. && *p == 1.)
    v = 0.;
  return v;
}