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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [20020320-1.c] - Blame information for rev 825

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

Line No. Rev Author Line
1 149 jeremybenn
/* PR c/5354 */
2
/* Verify that GCC preserves relevant stack slots.  */
3
 
4
extern void abort(void);
5
extern void exit(int);
6
 
7
struct large { int x, y[9]; };
8
 
9
int main()
10
{
11
  int fixed;
12
 
13
  fixed = ({ int temp1 = 2; temp1; }) - ({ int temp2 = 1; temp2; });
14
  if (fixed != 1)
15
    abort();
16
 
17
  fixed = ({ struct large temp3; temp3.x = 2; temp3; }).x
18
          - ({ struct large temp4; temp4.x = 1; temp4; }).x;
19
  if (fixed != 1)
20
    abort();
21
 
22
  exit(0);
23
}

powered by: WebSVN 2.1.0

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