fpc/tests/test/terecs4.pp
paul 4c7e2679df tests: add a test which checks that records destructors are not allowed
git-svn-id: branches/paul/extended_records@16546 -
2010-12-11 07:58:14 +00:00

18 lines
169 B
ObjectPascal

{ %fail}
{ %norun}
program terecs4;
{$mode delphi}
type
TFoo = record
destructor Destroy; // not allowed
end;
destructor TFoo.Destroy;
begin
end;
begin
end.