OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [20031011-1.c] - Blame information for rev 338

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 297 jeremybenn
/* PR optimization/12544 */
2
/* Origin: Tony Hosking <hosking@cs.purdue.edu> */
3
 
4
/* Verify that non-local structures passed by invisible
5
   reference are correctly put in the stack.  */
6
 
7
typedef struct {
8
  int a;
9
  int f;
10
} A;
11
 
12
A *b;
13
 
14
void x (A a) {
15
  void y () {
16
    a.a = 0;
17
  }
18
 
19
  b = &a;
20
  y();
21
}

powered by: WebSVN 2.1.0

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