OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gnat.dg/] [warn3.adb] - Blame information for rev 714

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 696 jeremybenn
--  { 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;

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.