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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [pr44946.c] - Blame information for rev 801

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

Line No. Rev Author Line
1 688 jeremybenn
struct A
2
{
3
  int i;
4
  long l;
5
};
6
 
7
struct B
8
{
9
  int i;
10
};
11
 
12
struct C
13
{
14
  int i;
15
  struct B b;
16
};
17
 
18
struct B foo (struct A a)
19
{
20
  struct C *c = (struct C *) &a;
21
  return c->b;
22
}
23
void bar (struct A a, struct B b)
24
{
25
  struct C *c = (struct C *) &a;
26
  c->b = b;
27
}

powered by: WebSVN 2.1.0

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