tcc-65816/test/tests/920501-4.c
2017-06-09 13:52:12 +02:00

28 lines
303 B
C

#ifndef NO_LABEL_VALUES
int
x (int i)
{
static const void *j[] = {&& x, && y, && z};
goto *j[i];
x: return 2;
y: return 3;
z: return 5;
}
int
main (void)
{
if ( x (0) != 2
|| x (1) != 3
|| x (2) != 5)
abort ();
exit (0);
}
#else
int
main (void) { exit (0); }
#endif