summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/ieee/20041213-1.c
blob: 07bdf6860d4ec2a73f1615c2eff19bd328eb53f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
extern double sqrt (double);
extern void abort (void);
int once;

double foo (void)
{
  if (once++)
    abort ();
  return 0.0 / 0.0;
}

double x;
int main (void)
{
  x = sqrt (foo ());
  return 0;
}