fpc/tests/webtbf/tw9551b.pp
Jonas Maebe 40247d2d87 * give an error when the typeinfo() function is called for an enumeration
whose base is not 0, or that has jumps in its value range (manits #9551)

git-svn-id: trunk@12960 -
2009-03-22 20:54:49 +00:00

18 lines
176 B
ObjectPascal

{ %fail }
uses
TypInfo,sysutils;
type
tmy2enum = (e1=20,e2,e3,e4);
procedure Test;
begin
writeln(GetEnumName(TypeInfo(TMy2Enum), Ord(e3)));
end;
begin
Test;
end.