diff options
Diffstat (limited to 'gcc-4.4.3/gcc/testsuite/gnat.dg/warn3.adb')
-rw-r--r-- | gcc-4.4.3/gcc/testsuite/gnat.dg/warn3.adb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc-4.4.3/gcc/testsuite/gnat.dg/warn3.adb b/gcc-4.4.3/gcc/testsuite/gnat.dg/warn3.adb new file mode 100644 index 000000000..66cc79bdb --- /dev/null +++ b/gcc-4.4.3/gcc/testsuite/gnat.dg/warn3.adb @@ -0,0 +1,15 @@ +-- { dg-do compile } +-- { dg-options "-gnatwu" } + +with Ada.Command_Line; use Ada.Command_Line; +with Text_IO; use Text_IO; +procedure warn3 is + type Weekdays is (Sun, Mon, Tue, Wed, Thu, Fri, Sat); +begin + if Argument_Count > 0 then + Put_Line + (Argument (1) & " is weekday number" + & Integer'Image + (Weekdays'Pos (Weekdays'Value (Argument (1))))); + end if; +end; |