mirror of
https://github.com/nArnoSNES/tcc-65816.git
synced 2024-09-29 08:58:24 +00:00
18 lines
289 B
C
18 lines
289 B
C
|
/* { dg-do run } */
|
||
|
/* { dg-options "-O1 -fwrapv" } */
|
||
|
#include <limits.h>
|
||
|
void exit (int);
|
||
|
void abort ();
|
||
|
#define ABS(x) (x > 0 ? x : -x)
|
||
|
int f (int a) {
|
||
|
if (ABS(a) >= 0) return 1;
|
||
|
else return 0;
|
||
|
}
|
||
|
|
||
|
int main (int argc, char *argv[]) {
|
||
|
if (f(INT_MIN))
|
||
|
abort ();
|
||
|
else
|
||
|
exit (0);
|
||
|
}
|