mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-07 06:08:22 +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 -
19 lines
226 B
ObjectPascal
19 lines
226 B
ObjectPascal
{ %FAIL }
|
|
|
|
program tb0262;
|
|
|
|
{$mode objfpc}
|
|
{$modeswitch advancedrecords}
|
|
|
|
type
|
|
TTest = record
|
|
public
|
|
a, b: LongInt;
|
|
public const
|
|
Test: array[0..1] of TTest = ((a: 42; b: 21), (a: 21; b: 42));
|
|
end;
|
|
|
|
begin
|
|
|
|
end.
|