Testing doesn't trip on this yet, but will in a future patch.
Signed-off-by: NeilBrown <neil@brown.name>
for i:=0; then i=i+1; while i < 5:
switch i:
case 0: num:="zero"
- case 1: num:="one"
+ case 1: scratch:=42; num:="one"
case 2: num:="two"
case 3: num:="three"
else num:="many"
v->previous->scope == PendingScope)
/* all previous branches used name */
v->scope = PendingScope;
- else if (v->type == Tlabel) // UNTESTED
+ else if (v->type == Tlabel)
/* Labels remain pending even when not used */
v->scope = PendingScope; // UNTESTED
+ else
+ v->scope = OutScope;
if (ct == CloseElse) {
/* All Pending variables with this name
* are now Conditional */