summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/pr45728.c
blob: a6ee10b8cd18f99aeb96d68bda22408710f3d362 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* PR rtl-optimization/45728 */

union U
{
  int *m;
  double d;
};

int i;
union U u;

int
foo (void)
{
  union U v = { &i };
  return u.d == v.d;
}