scc

simple C compiler
git clone git://git.2f30.org/scc
Log | Files | Refs | README | LICENSE

0035-breakcont.c (285B)


      1 int
      2 main()
      3 {
      4 	int x;
      5 	
      6 	x = 0;
      7 	while(1)
      8 		break;
      9 	while(1) {
     10 		if (x == 5) {
     11 			break;
     12 		}
     13 		x = x + 1;
     14 		continue;
     15 	}
     16 	for (;;) {
     17 		if (x == 10) {
     18 			break;
     19 		}
     20 		x = x + 1;
     21 		continue;
     22 	}
     23 	do {
     24 		if (x == 15) {
     25 			break;
     26 		}
     27 		x = x + 1;
     28 		continue;
     29 	} while(1);
     30 	return x - 15;
     31 }
     32