blob: 01abac2aded5c77c000961cdada5f19e68e89391 [file] [log] [blame]
/* This testcase checks for a bug in the GCC front-end to make sure it's not
folding expressions incorrectly */
#include <stdio.h>
extern void abort (void);
int
foo (int x)
{
if ((int) (x & 0x80ffffff) != (int) (0x8000fffe))
abort ();
return 0;
}
int main () {
foo (0x8000fffe);
printf("All ok\n");
}