1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
int main(int argc,char ** argv) { int retVal = 10; void * label = &&action4; goto action2; action1: retVal -= 4; label = &&endofcode; goto *label; action2: retVal -= 5; goto *label; action3: retVal += 40; action4: retVal -= 1; label = &&action1; goto *label; endofcode: return retVal; }