mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-17 16:49:23 +02:00
no message
This commit is contained in:
parent
208e0a4547
commit
ae55717d7b
23
tests/webtbs/tw1677.pp
Normal file
23
tests/webtbs/tw1677.pp
Normal file
@ -0,0 +1,23 @@
|
||||
{ Source provided for Free Pascal Bug Report 1677 }
|
||||
{ Submitted by "Anders Lindeberg" on 2001-11-10 }
|
||||
{ e-mail: anders.lindeberg@telia.com }
|
||||
program test;
|
||||
type trec = record i:integer; s:ansistring end;
|
||||
procedure p1(const r:trec); begin end;
|
||||
procedure p2(r:trec); begin end;
|
||||
var r:trec; s:ansistring;
|
||||
begin
|
||||
s:=chr(ord('A')+random(26));
|
||||
r.s:=s;
|
||||
if plongint(pointer(s)-4)^<>3 then
|
||||
halt(1);
|
||||
p1(r);
|
||||
if plongint(pointer(s)-4)^<>3 then
|
||||
halt(1);
|
||||
p2(r);
|
||||
if plongint(pointer(s)-4)^<>3 then
|
||||
halt(1);
|
||||
writeln('ok');
|
||||
end.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user