2002-05-10 David S. Miller <davem@redhat.com>
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / 20010329-1.c
blobe28d6d7c72e910b40c9bb4c8fc87ca68b636845c
1 #include <limits.h>
3 int main (void)
5 void *x = ((void *)((unsigned int)INT_MAX + 2));
6 void *y = ((void *)((unsigned long)LONG_MAX + 2));
7 if (x >= ((void *)((unsigned int)INT_MAX + 1))
8 && x <= ((void *)((unsigned int)INT_MAX + 6))
9 && y >= ((void *)((unsigned long)LONG_MAX + 1))
10 && y <= ((void *)((unsigned long)LONG_MAX + 6)))
11 exit (0);
12 else
13 abort ();