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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [920501-5.c] - Blame information for rev 338

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 297 jeremybenn
#ifndef NO_LABEL_VALUES
2
x (int i)
3
{
4
  void *j[] = {&&x, &&y, &&z};
5
  goto *j[i];
6
 x:return 2;
7
 y:return 3;
8
 z:return 5;
9
 
10
}
11
main ()
12
{
13
  if (x (0) != 2 || x (1) != 3 || x (2) != 5)
14
    abort();
15
  exit(0);
16
}
17
#else
18
main(){ exit (0); }
19
#endif

powered by: WebSVN 2.1.0

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