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/] [aggr3.adb] - Diff between revs 304 and 384

Only display areas with differences | Details | Blame | View Log

Rev 304 Rev 384
--  { dg-do run }
--  { dg-do run }
 
 
with Ada.Tags;    use Ada.Tags;
with Ada.Tags;    use Ada.Tags;
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Text_IO; use Ada.Text_IO;
procedure aggr3 is
procedure aggr3 is
   package Pkg is
   package Pkg is
      type Element is interface;
      type Element is interface;
      type Event is tagged record
      type Event is tagged record
         V1 : Natural;
         V1 : Natural;
         V2 : Natural;
         V2 : Natural;
      end record;
      end record;
      function Create return Event;
      function Create return Event;
      type D_Event is new Event and Element with null record;
      type D_Event is new Event and Element with null record;
      function Create return D_Event;
      function Create return D_Event;
   end;
   end;
   package body Pkg is
   package body Pkg is
      function Create return Event is
      function Create return Event is
         Obj : Event;
         Obj : Event;
      begin
      begin
         Obj.V1 := 0;
         Obj.V1 := 0;
         return Obj;
         return Obj;
      end;
      end;
      function Create return D_Event is
      function Create return D_Event is
      begin
      begin
         return (Event'(Create) with null record);
         return (Event'(Create) with null record);
      end;
      end;
   end;
   end;
   use Pkg;
   use Pkg;
   procedure CW_Test (Obj : Element'Class) is
   procedure CW_Test (Obj : Element'Class) is
      S : Constant String := Expanded_Name (Obj'Tag);
      S : Constant String := Expanded_Name (Obj'Tag);
   begin
   begin
      null;
      null;
   end;
   end;
begin
begin
   CW_Test (Create);
   CW_Test (Create);
end;
end;
 
 

powered by: WebSVN 2.1.0

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