summaryrefslogtreecommitdiff
path: root/fpcsrc/tests/tbs/tb0141.pp
blob: 5868ec2a6dcdeecc7a34878a7f89e16d0e33a9c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{ Old file: tbs0169.pp }
{ missing new(type) support for not object/class             OK 0.99.9 (PM) }

type
  psearchrec=^longint;

Var Sr : PSearchrec;

begin
  Sr := New(PSearchRec);
  Sr^ := 45;
  if Sr^<>45 then
    Halt(1);
  Dispose(Sr);
end.