Debian Codegraph @

gcc/testsuite/gcc.c-torture/execute/930614-1.c

raw
1 void abort (void);
2 void exit (int);
3
4 void
5 f (double *ty)
6 {
7 *ty = -1.0;
8 }
9
10 int
11 main (void)
12 {
13 double foo[6];
14 double tx = 0.0, ty, d;
15
16 f (&ty);
17
18 if (ty < 0)
19 ty = -ty;
20 d = (tx > ty) ? tx : ty;
21 if (ty != d)
22 abort ();
23 exit (0);
24 }