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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [gnat.dg/] [testint.adb] - Diff between revs 304 and 384

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 304 Rev 384
--  { dg-do run }
--  { dg-do run }
--  { dg-options "-gnato" }
--  { dg-options "-gnato" }
 
 
with Text_IO; use Text_IO;
with Text_IO; use Text_IO;
procedure testint is
procedure testint is
   function m1 (a, b : short_integer) return integer is
   function m1 (a, b : short_integer) return integer is
   begin
   begin
      return integer (a + b);
      return integer (a + b);
   end m1;
   end m1;
   f : integer;
   f : integer;
begin
begin
   f := m1 (short_integer'Last, short_integer'Last);
   f := m1 (short_integer'Last, short_integer'Last);
end testint;
end testint;
 
 

powered by: WebSVN 2.1.0

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