fpc/tests/webtbs/tw28832.pp
svenbarth 8c96fbed8f Fix for Mantis #28832
ninl.pas, tinlinenode:
  * pass_typecheck: let code pass on to simplify() for undefineddefs in Low() and High()
  * simplify: create a constant 0 as fallback

+ added test

git-svn-id: trunk@33884 -
2016-06-03 12:14:30 +00:00

19 lines
233 B
ObjectPascal

{ %NORUN }
program tw28832;
{$mode objfpc}{$H+}
generic procedure Test<T>(AValue : T);
begin
WriteLn(Low(AValue));
WriteLn(Low(T));
WriteLn(High(AValue));
WriteLn(High(T));
end;
begin
specialize Test<Integer>(0);
end.