mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-08 04:08:04 +02:00
23 lines
250 B
ObjectPascal
23 lines
250 B
ObjectPascal
{ %NORUN }
|
|
|
|
program tb0666b;
|
|
|
|
{$mode objfpc}
|
|
|
|
generic function Test<T>: T;
|
|
|
|
procedure Foo;
|
|
begin
|
|
specialize Test<T>;
|
|
specialize Test<LongInt>;
|
|
specialize Test<String>;
|
|
end;
|
|
|
|
begin
|
|
Foo;
|
|
end;
|
|
|
|
begin
|
|
specialize Test<LongInt>;
|
|
end.
|