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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [pr33382.c] - Blame information for rev 826

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 297 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.