void xx(char cc) { char aa; switch(cc) { case 1:case 0: aa=1; break; case 2,3: aa=2; break; } }
//----------------------------------
xx(0); //run OK xx(1); //run OK xx(2); //run FAIL <<***************** xx(3); //run OK
But it should catch invalid syntax!
I know of no C compiler that catches and report each and every possible mistake although they should
'should' is such a wonderful word
you should stop smoking you should eat healthy you should exercise regularly you should .....
Erik
PS I do agree that someone with a current license should report this to Keil, if anyone lese does it is more certain it will be ignored. I am nor working Keil at this place.