tests: add a test which checks that records destructors are not allowed

git-svn-id: branches/paul/extended_records@16546 -
This commit is contained in:
paul 2010-12-11 07:58:14 +00:00
parent 52cd624a76
commit 4c7e2679df
2 changed files with 18 additions and 0 deletions

1
.gitattributes vendored
View File

@ -9206,6 +9206,7 @@ tests/test/tenumerators1.pp svneol=native#text/pascal
tests/test/terecs1.pp svneol=native#text/pascal
tests/test/terecs2.pp svneol=native#text/pascal
tests/test/terecs3.pp svneol=native#text/pascal
tests/test/terecs4.pp svneol=native#text/pascal
tests/test/terecs_u1.pp svneol=native#text/pascal
tests/test/testcmem.pp svneol=native#text/plain
tests/test/testda1.pp svneol=native#text/plain

17
tests/test/terecs4.pp Normal file
View File

@ -0,0 +1,17 @@
{ %fail}
{ %norun}
program terecs4;
{$mode delphi}
type
TFoo = record
destructor Destroy; // not allowed
end;
destructor TFoo.Destroy;
begin
end;
begin
end.