mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-09 17:08:34 +02:00
21 lines
299 B
ObjectPascal
21 lines
299 B
ObjectPascal
{ %NORUN }
|
|
{$mode objfpc}
|
|
{$modeswitch advancedrecords}
|
|
{
|
|
test integer constants in static array ranges
|
|
}
|
|
program tgenconst3;
|
|
|
|
type
|
|
generic TList<T;const U:integer> = record
|
|
const
|
|
max = U;
|
|
public
|
|
m_list: array[0..max-1] of T;
|
|
end;
|
|
|
|
var
|
|
list: specialize TList<integer,128>;
|
|
begin
|
|
end.
|