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/] [pr42237.c] - Blame information for rev 298

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

Line No. Rev Author Line
1 297 jeremybenn
struct A
2
{
3
  int p;
4
};
5
 
6
struct B
7
{
8
  struct A n;
9
  struct A m;
10
  int x;
11
  int y;
12
  int z;
13
};
14
 
15
extern int g1, g2;
16
 
17
static void __attribute__((noinline)) foo (struct B *b)
18
{
19
  int t;
20
 
21
  t = b->n.p;
22
  g1 = t;
23
  b->n.p = t+1;
24
  g2 = b->m.p;
25
 
26
  b->m = b->n;
27
}
28
 
29
void bar (struct B *b)
30
{
31
  foo (b);
32
}

powered by: WebSVN 2.1.0

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