mirror of
https://github.com/nArnoSNES/tcc-65816.git
synced 2024-06-02 19:42:59 +00:00
18 lines
204 B
C
18 lines
204 B
C
extern void abort (void);
|
|
|
|
#define N (1 << (sizeof(int) * __CHAR_BIT__ - 2))
|
|
|
|
int f(int n)
|
|
{
|
|
if (-N <= n && n <= N-1)
|
|
return 1;
|
|
return 0;
|
|
}
|
|
|
|
int main ()
|
|
{
|
|
if (f (N))
|
|
abort ();
|
|
return 0;
|
|
}
|