view gcc/testsuite/gcc.dg/pr47201.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
line wrap: on
line source

/* 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;
}