fpc/tests/webtbs/tw15207.pp
Jonas Maebe 280f27b45c * store/restore trttinode.rttidatatype to/from ppu file, and also copy it in
rttidatatype.getcopy (fixes mantis #15207)

git-svn-id: trunk@14318 -
2009-12-03 23:03:25 +00:00

28 lines
282 B
ObjectPascal

program testinline;
{$mode objfpc}{$H+}
type
enumtest = (e1, e2);
function Test: Boolean; inline;
var
e: enumtest;
s: String;
begin
e := e1;
WriteStr(s, e);
result:=s='e1';
end;
procedure TestProc;
begin
if not Test then
halt(1);
end;
begin
TestProc;
end.