OSDN Git Service

* exp_pakd.adb (Create_Packed_Array_Type): Always use a modular type
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gnat.dg / warn3.adb
1 --  { dg-do compile }
2 --  { dg-options "-gnatwu" }
3
4 with Ada.Command_Line; use Ada.Command_Line;
5 with Text_IO; use Text_IO;
6 procedure warn3 is
7    type Weekdays is (Sun, Mon, Tue, Wed, Thu, Fri, Sat);
8 begin
9    if Argument_Count > 0 then
10       Put_Line
11         (Argument (1) & " is weekday number"
12          & Integer'Image
13             (Weekdays'Pos (Weekdays'Value (Argument (1)))));
14    end if;
15 end;