{ %FAIL } unit tgenfunc27; {$mode objfpc}{$H+} interface type Test = record end; generic procedure Test; implementation generic procedure Test; begin end; end.