OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [pr47201.c] - Rev 689

Compare with Previous | Blame | View Log

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

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.