PR tree-optimization/81303
[official-gcc.git] / gcc / testsuite / gcc.dg / pr20054.c
blob292b856d014cad30e24ebb36f789a32f2a595265
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -fno-strict-aliasing" } */
6 unsigned int *foo (void);
8 char *
9 bar (double *d)
11 return (char *) (d + 1) - sizeof (unsigned int);
14 char
15 baz (double x)
17 unsigned int h = *foo ();
18 unsigned int l = *(unsigned int *) bar (&x);
20 return (h & ~0x80000000L) == 0x7FF00000 && l == 0;