1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#include <limits.h> extern void exit (int); extern void abort (void); volatile unsigned int i; int main (void) { unsigned char z = 0; do ++i; while (--z > 0); if (i != UCHAR_MAX + 1U) abort (); exit (0); }