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.0rc1/] [gcc/] [testsuite/] [gnat.dg/] [nested_proc2.adb] - Diff between revs 304 and 338

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

Rev 304 Rev 338
-- { dg-do compile }
-- { dg-do compile }
-- { dg-options "-gnatws" }
-- { dg-options "-gnatws" }
 
 
procedure Nested_Proc2 is
procedure Nested_Proc2 is
 
 
   type Arr is array(1..2) of Integer;
   type Arr is array(1..2) of Integer;
 
 
   type Rec is record
   type Rec is record
      Data : Arr;
      Data : Arr;
   end record;
   end record;
 
 
   From  : Rec;
   From  : Rec;
   Index : Integer;
   Index : Integer;
 
 
   function F (X : Arr) return Integer is
   function F (X : Arr) return Integer is
   begin
   begin
      return 0;
      return 0;
   end;
   end;
 
 
   procedure Test is
   procedure Test is
   begin
   begin
      Index := F (From.Data);
      Index := F (From.Data);
      If Index /= 0 then
      If Index /= 0 then
         raise Program_Error;
         raise Program_Error;
      end if;
      end if;
   end;
   end;
 
 
begin
begin
  Test;
  Test;
end;
end;
 
 

powered by: WebSVN 2.1.0

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