summaryrefslogtreecommitdiff
path: root/tests/webtbs/tw15467.pp
blob: 4b943e56a37cfa6246b37cf4285de4a51e820d9f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
program test;

uses typinfo;

Type
  E1 = (en1,en2,en3,en4,en5);
  E2 = en3..en5;
begin
  if (GetEnumValue(TypeInfo(E1),'en5') <> 4) then
    halt(1);
  if (GetEnumValue(TypeInfo(E2),'en5') <> 4) then
    halt(1);
  writeln('ok');
end.