mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-07 10:48:30 +02:00

+ added tests Note: unlike what bug report 27880 suggests Delphi also does *NOT* allow this (at least a current Delphi Tokyo) and fails with a "type is not completely defined" error, so this test belongs into the "failure" category git-svn-id: trunk@40285 -
21 lines
255 B
ObjectPascal
21 lines
255 B
ObjectPascal
{ %FAIL }
|
|
|
|
program tb0265;
|
|
|
|
{$mode objfpc}
|
|
{$modeswitch advancedrecords}
|
|
|
|
type
|
|
TTest = record
|
|
public
|
|
a, b: LongInt;
|
|
public const
|
|
Test: array of record
|
|
t: TTest;
|
|
end = ((t: (a: 42; b: 21)), (t: (a: 21; b: 42)));
|
|
end;
|
|
|
|
begin
|
|
|
|
end.
|