Darwin: Support '-ObjC{,++}' as shorthand for -xobjective-c{,++} [PR117478].
[official-gcc.git] / gcc / testsuite / gnat.dg / warn3.adb
blob66cc79bdba0736d3bc29822a8d1d3406c75c0520
1 -- { dg-do compile }
2 -- { dg-options "-gnatwu" }
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;