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/] [20000801-3.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
/* Origin: PR c/92 from Simon Marlow <t-simonm@microsoft.com>, adapted
2
   to a testcase by Joseph Myers <jsm28@cam.ac.uk>.
3
*/
4
 
5
typedef struct { } empty;
6
 
7
typedef struct {
8
  int i;
9
  empty e;
10
  int i2;
11
} st;
12
 
13
st s = { .i = 0, .i2 = 1 };
14
 
15
extern void abort (void);
16
 
17
int
18
main (void)
19
{
20
  if (s.i2 == 1)
21
    exit (0);
22
  else
23
    abort ();
24
}

powered by: WebSVN 2.1.0

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