aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/pr47201.c
blob: 11e1f2ade3a3c7861708658aff181b55924c4091 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* PR target/47201 */
/* { dg-do compile } */
/* { dg-options "-O -fpic -g" { target fpic } } */

union U
{
  __UINTPTR_TYPE__ m;
  float d;
} u;

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