+ 191,192

This commit is contained in:
peter 1998-12-15 17:10:04 +00:00
parent 9c7239cfbe
commit 169474a65a
3 changed files with 31 additions and 0 deletions

20
bugs/bug0191.pp Normal file
View File

@ -0,0 +1,20 @@
type
trec=record
a,b : longint;
end;
prec=^trec;
const
s : string = 'test';
pc : pchar = @s[1];
cfg : array[1..2] of trec=(
(a:1;b:2),
(a:3;b:4)
);
pcfg : prec = @cfg[2];
l : ^longint = @cfg[1].b; { l^ should be 2 }
begin
end.

8
bugs/bug0192.pp Normal file
View File

@ -0,0 +1,8 @@
var
k,l : word;
begin
if (k<>l)=false then
;
if (k<>l)=true then
;
end.

View File

@ -253,3 +253,6 @@ bug0188.pp can't print function result of procedural var that returns a
function.
bug0189.pp cant compare adresses of function variables !!
bug0190.pp can't have typecast for var params ??
bug0191.pp missing vecn constant evaluation
bug0192.pp can't compare boolean result with true/false, because the
boolean result is already in the flags