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] - Blame information for rev 299

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

Line No. Rev Author Line
1 297 jeremybenn
typedef void* Ptr;
2
 
3
struct A
4
{
5
  int i;
6
  union
7
  {
8
    Ptr p;
9
    char *q;
10
  } u;
11
};
12
 
13
static void foo(struct A *p, char *q)
14
{
15
  if (p->i)
16
    p->u.p = 0;
17
  else
18
    p->u.q = q;
19
}
20
 
21
void bar(struct A *p, char *q)
22
{
23
  foo(p, q);
24
}

powered by: WebSVN 2.1.0

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