fpc/tests/webtbs/tw30522.pp
Jonas Maebe 3669419bb3 * fixed tcasenode.simplify() in case we have to pass via a "less" branch of
of a tcaselabel that also has a valid "greater" branch to arrive at the
    correct entry (mantis #30522)

git-svn-id: trunk@34379 -
2016-08-26 13:02:10 +00:00

27 lines
327 B
ObjectPascal

type
E = ( a, b, c );
begin
case b of
a: begin
write( 'a' );
halt(1);
end;
c: begin
write( 'c' );
halt(2);
end;
b:
begin
write( 'b' );
halt(0);
end;
else
begin
write( '?' );
halt(3);
end
end;
end.