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

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [pr33382.c] - Blame information for rev 154

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
struct Foo {
2
  int i;
3
  int j[];
4
};
5
 
6
struct Foo x = { 1, { 2, 0, 2, 3 } };
7
 
8
int foo(void)
9
{
10
  x.j[0] = 1;
11
  return x.j[1];
12
}
13
 
14
extern void abort(void);
15
 
16
int main()
17
{
18
  if (foo() != 0)
19
    abort();
20
  return 0;
21
}

powered by: WebSVN 2.1.0

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