mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-11 17:28:11 +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
193 B
ObjectPascal
19 lines
193 B
ObjectPascal
{ %FAIL }
|
|
|
|
program tb0261;
|
|
|
|
{$mode objfpc}
|
|
{$modeswitch advancedrecords}
|
|
|
|
type
|
|
TTest = record
|
|
public
|
|
a, b: LongInt;
|
|
public const
|
|
Test: TTest = (a: 42; b: 21);
|
|
end;
|
|
|
|
begin
|
|
|
|
end.
|