ctl_while_unsigned.c (363B)
1 /* A while loop driven by an *unsigned* comparison, which selects an 2 * unsigned-condition branch (HS/LO) distinct from the signed forms exercised 3 * elsewhere. volatile bound keeps the loop real. Steps 0,6,..,42 => 42. */ 4 int test_main(void) { 5 volatile unsigned int limit = 42u; 6 unsigned int v = 0u; 7 while (v < limit) { 8 v += 6u; 9 } 10 return (int)v; 11 }