xref: /original-bsd/old/dbx/tests/pc/enum.p (revision 05cf3734)
1program enumtest (input, output);
2type
3    Color = (RED, GREEN, BLUE);
4
5var c1, c2 : Color;
6
7procedure P (c : Color);
8begin
9    writeln('c = ', ord(c):1);
10end;
11
12begin
13    c1 := BLUE;
14    c2 := GREEN;
15    P(RED);
16end.
17