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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [pr41123.c] - Rev 801

Go to most recent revision | Compare with Previous | Blame | View Log

/* PR middle-end/41123 */
/* { dg-do compile } */
/* { dg-options "-O2 -fno-strict-aliasing" } */
 
struct S { char a, b, c, d, e, f, g, h; };
struct T { int a, b; };
 
struct S
f1 (float _Complex x)
{
  return *(struct S *) & x;
}
 
int
f2 (float _Complex x)
{
  struct S f = f1 (x);
  return f.b;
}
 
struct T
f3 (float _Complex x)
{
  return *(struct T *) & x;
}
 
int
f4 (float _Complex x)
{
  struct T f = f3 (x);
  return f.a;
}
 
int
f5 (float _Complex x)
{
  struct T f = f3 (x);
  return f.b;
}
 
struct T
f6 (float _Complex x)
{
  struct T f = f3 (x);
  return f;
}
 

Go to most recent revision | 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.