blob: e28d6d7c72e910b40c9bb4c8fc87ca68b636845c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#include <limits.h>
int main (void)
{
void *x = ((void *)((unsigned int)INT_MAX + 2));
void *y = ((void *)((unsigned long)LONG_MAX + 2));
if (x >= ((void *)((unsigned int)INT_MAX + 1))
&& x <= ((void *)((unsigned int)INT_MAX + 6))
&& y >= ((void *)((unsigned long)LONG_MAX + 1))
&& y <= ((void *)((unsigned long)LONG_MAX + 6)))
exit (0);
else
abort ();
}
|