mirror of
https://github.com/nArnoSNES/tcc-65816.git
synced 2024-05-31 22:41:28 +00:00
20 lines
240 B
C
20 lines
240 B
C
/* Produced a overflow in ifcvt.c, causing S to contain 0xffffffff7fffffff. */
|
|
|
|
int a = 1;
|
|
|
|
int main ()
|
|
{
|
|
long long s;
|
|
|
|
s = a;
|
|
if (s < 0)
|
|
s = -2147483648LL;
|
|
else
|
|
s = 2147483647LL;
|
|
|
|
if (s < 0)
|
|
abort ();
|
|
|
|
return 0;
|
|
}
|