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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gnat.dg/] [warn3.adb] - Rev 801

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

--  { 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;
 

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

powered by: WebSVN 2.1.0

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