git-svn-id: trunk@43913 -
This commit is contained in:
florian 2020-01-11 21:15:19 +00:00
parent aabd7c7217
commit 007df5d0fa
3 changed files with 20 additions and 1 deletions

1
.gitattributes vendored
View File

@ -16118,6 +16118,7 @@ tests/webtbf/tw36377.pp svneol=native#text/pascal
tests/webtbf/tw36397.pp -text svneol=native#text/pascal
tests/webtbf/tw3643.pp svneol=native#text/plain
tests/webtbf/tw3644.pp svneol=native#text/plain
tests/webtbf/tw36554.pp svneol=native#text/pascal
tests/webtbf/tw3662.pp svneol=native#text/plain
tests/webtbf/tw3680.pp svneol=native#text/plain
tests/webtbf/tw3716.pp svneol=native#text/plain

View File

@ -385,7 +385,10 @@ implementation
) and
(hloopvar.resultdef.typ<>undefineddef)
then
MessagePos(hloopvar.fileinfo,type_e_ordinal_expr_expected);
begin
MessagePos(hloopvar.fileinfo,type_e_ordinal_expr_expected);
hloopvar.resultdef:=generrordef;
end;
hp:=hloopvar;
while assigned(hp) and

15
tests/webtbf/tw36554.pp Normal file
View File

@ -0,0 +1,15 @@
{ %fail }
type oWord = record q1,q2 : qword; end;
procedure megadoodoo;
var a : oWord;
begin
for a:=0 to 3 do
begin
end;
end;
begin
end.