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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [pr42025-1.c] - Rev 297

Compare with Previous | Blame | View Log

typedef void* Ptr;
 
struct A
{
  int i;
  union
  {
    Ptr p;
    char *q;
  } u;
};
 
static void foo(struct A *p, char *q)
{
  if (p->i)
    p->u.p = 0;
  else
    p->u.q = q;
}
 
void bar(struct A *p, char *q)
{
  foo(p, q);
}
 

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.