mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-08 01:08:07 +02:00
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:
parent
52cd624a76
commit
4c7e2679df
1
.gitattributes
vendored
1
.gitattributes
vendored
@ -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
17
tests/test/terecs4.pp
Normal 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.
|
Loading…
Reference in New Issue
Block a user