OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [gnat.dg/] [opt5.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 "-O2" }
-- { dg-options "-O2" }
 
 
procedure Opt5 is
procedure Opt5 is
 
 
   type Varray is array (1 .. 4) of Natural;
   type Varray is array (1 .. 4) of Natural;
 
 
   procedure Check_All_Ones (A : Varray) is
   procedure Check_All_Ones (A : Varray) is
   begin
   begin
      for J in A'Range loop
      for J in A'Range loop
         if (A (J)) /= 1 then
         if (A (J)) /= 1 then
            raise Program_Error;
            raise Program_Error;
         end if;
         end if;
      end loop;
      end loop;
   end;
   end;
 
 
   X : constant Varray := (1, 1, 1, 1);
   X : constant Varray := (1, 1, 1, 1);
 
 
begin
begin
   Check_All_Ones (X);
   Check_All_Ones (X);
end;
end;
 
 

powered by: WebSVN 2.1.0

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