2 -- { dg-options "-gnatwu" }
4 with Ada
.Command_Line
; use Ada
.Command_Line
;
5 with Text_IO
; use Text_IO
;
7 type Weekdays
is (Sun
, Mon
, Tue
, Wed
, Thu
, Fri
, Sat
);
9 if Argument_Count
> 0 then
11 (Argument
(1) & " is weekday number"
13 (Weekdays
'Pos (Weekdays
'Value (Argument
(1)))));