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

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [920501-5.c] - Blame information for rev 12

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 12 jlechner
#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.