mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-12 15:29:34 +02:00

of a tcaselabel that also has a valid "greater" branch to arrive at the correct entry (mantis #30522) git-svn-id: trunk@34379 -
27 lines
327 B
ObjectPascal
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.
|