mirror of
https://github.com/nArnoSNES/tcc-65816.git
synced 2024-06-12 13:29:29 +00:00
31 lines
422 B
C
31 lines
422 B
C
/* Copyright 2001 Free Software Foundation
|
|
Contributed by Alexandre Oliva <aoliva@redhat.com> */
|
|
|
|
int f(int i) {
|
|
switch (i)
|
|
{
|
|
case -2:
|
|
return 33;
|
|
case -1:
|
|
return 0;
|
|
case 0:
|
|
return 7;
|
|
case 1:
|
|
return 4;
|
|
case 2:
|
|
return 3;
|
|
case 3:
|
|
return 15;
|
|
case 4:
|
|
return 9;
|
|
default:
|
|
abort ();
|
|
}
|
|
}
|
|
|
|
int main() {
|
|
if (f(-1))
|
|
abort ();
|
|
exit (0);
|
|
}
|