mirror of
https://github.com/nArnoSNES/tcc-65816.git
synced 2024-05-31 22:41:28 +00:00
17 lines
169 B
C
17 lines
169 B
C
int
|
|
f (int n)
|
|
{
|
|
return (n > 0) - (n < 0);
|
|
}
|
|
|
|
main ()
|
|
{
|
|
if (f (-1) != -1)
|
|
abort ();
|
|
if (f (1) != 1)
|
|
abort ();
|
|
if (f (0) != 0)
|
|
abort ();
|
|
exit (0);
|
|
}
|