case: Do not lose the default condition

The default condition was dropped and replaced with an empty one.

Fixes: #1168

Signed-off-by: Christophe de Dinechin <christophe@dinechin.org>
This commit is contained in:
Christophe de Dinechin 2024-09-09 01:50:59 +02:00
parent 9cfca545c2
commit f2c178aeda

View file

@ -427,6 +427,11 @@ PARSE_BODY(CaseStatement)
had_end = false;
break;
}
else
{
obj1 = prog;
break;
}
} // Loop on conditions and blocks
// Here, either had_end, and obj1 is the tail block, or adding a cond