2 pr45034.c from the execute part of the gcc torture tests.
9 #pragma disable_warning 85
12 static void fixnum_neg(signed char x
, signed char *py
, int *pv
)
16 ux
= (unsigned char)x
;
18 *py
= (uy
<= 127) ? (signed char)uy
: (-(signed char)(255 - uy
) - 1);
19 *pv
= (x
== -128) ? 1 : 0;
22 void foo(int x
, int y
, int v
)
24 if (y
< -128 || y
> 127)
36 fixnum_neg(x
, &y
, &v
);
37 foo((int)x
, (int)y
, v
);
38 if ((v
&& x
!= -128) || (!v
&& x
== -128))
48 testTortureExecute (void)
50 #if !(defined (__GNUC__) && defined (__GNUC_MINOR__) && (__GNUC__ < 5 && __GNUC_MINOR__ < 6))
51 if (sizeof (char) != 1)