scc

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

0052-switch.c (359B)


      1 int x = 0;
      2 
      3 int
      4 main()
      5 {
      6 	switch(x)
      7 		case 0:
      8 			;
      9 	switch(x)
     10 		case 0:
     11 			switch(x) {
     12 				case 0:
     13 					goto next;
     14 				default:
     15 					return 1;
     16 			}
     17 	return 1;
     18 	next:
     19 	switch(x)
     20 		case 1:
     21 			return 1;
     22 	switch(x) {
     23 		{
     24 			x = 1 + 1;
     25 			foo:
     26 			case 1:
     27 				return 1;
     28 		}
     29 	}
     30 	switch(x) {
     31 		case 0:
     32 			return x;
     33 		case 1:
     34 			return 1;
     35 		default:
     36 			return 1;
     37 	}
     38 }