mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-20 10:45:08 +02:00
*** empty log message ***
This commit is contained in:
parent
38567989b0
commit
099f13ec92
1
tests/testopt/readme.txt
Normal file
1
tests/testopt/readme.txt
Normal file
@ -0,0 +1 @@
|
||||
This directory contains some tests which test the optimizer
|
26
tests/testopt/testreg1.pp
Normal file
26
tests/testopt/testreg1.pp
Normal file
@ -0,0 +1,26 @@
|
||||
{$minenumsize 1}
|
||||
|
||||
|
||||
type
|
||||
tenum = (e1,e2,e3);
|
||||
|
||||
procedure p1(e : tenum);forward;
|
||||
|
||||
procedure p1;
|
||||
|
||||
begin
|
||||
e:=tenum(byte(e)*byte(e));
|
||||
case e of
|
||||
e1 : ;
|
||||
else
|
||||
begin
|
||||
writeln('error');
|
||||
halt(1);
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
|
||||
begin
|
||||
p1(e1);
|
||||
end.
|
||||
|
Loading…
Reference in New Issue
Block a user