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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [920501-4.c] - Blame information for rev 801

Go to most recent revision | Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

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