summaryrefslogtreecommitdiff
path: root/fpcsrc/tests/webtbf/tw9551.pp
blob: ff8d25d956f52d06ad40288425d0db318aaf5c74 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{ %fail }

uses 
  TypInfo,sysutils;

const
  csMyConstValueA = 10;
  csMyConstValueB = 20;
  csMyConstValueC = 30;

type
  TMyEnum = (meValueA = csMyConstValueA,
             meValueB = csMyConstValueB,
             meValueC = csMyConstValueC);

procedure Test;
begin
  writeln(GetEnumName(TypeInfo(TMyEnum), Ord(meValueB)));
end;

begin 
 Test;
end.