4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-01-18 04:19:21 +08:00

19 lines
343 B
C
Raw Normal View History

#include <stddef.h>
#include <stdint.h>
#include <stdlib.h>
int main () {
size_t s;
s = SIZE_MAX;
/* If SIZE_MAX is truncated when assigning to "s", then SIZE_MAX is
too big. */
if (s != SIZE_MAX)
abort ();
/* If SIZE_MAX + 1 is not zero, then SIZE_MAX is not big enough. */
if (++s != 0)
abort ();
return 0;
}