mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-07 06:08:22 +02:00
24 lines
301 B
ObjectPascal
24 lines
301 B
ObjectPascal
{ %NORUN }
|
|
{ %OPT=-Sew }
|
|
|
|
{ don't optimize TypeInfo comparisons if undefined types are involved }
|
|
|
|
program tb0702;
|
|
|
|
{$mode objfpc}
|
|
|
|
type
|
|
generic TTest<S> = class
|
|
procedure Test;
|
|
end;
|
|
|
|
procedure TTest.Test;
|
|
begin
|
|
if TypeInfo(S) = TypeInfo(LongInt) then
|
|
Writeln('Test');
|
|
end;
|
|
|
|
begin
|
|
|
|
end.
|