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/] [late_overriding.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 }
 
 
procedure late_overriding is
procedure late_overriding is
   package Pkg is
   package Pkg is
      type I is interface;
      type I is interface;
      procedure Meth (O : in I) is abstract;
      procedure Meth (O : in I) is abstract;
      type Root is abstract tagged null record;
      type Root is abstract tagged null record;
      type DT1 is abstract new Root and I with null record;
      type DT1 is abstract new Root and I with null record;
   end Pkg;
   end Pkg;
   use Pkg;
   use Pkg;
   type DT2 is new DT1 with null record;
   type DT2 is new DT1 with null record;
   procedure Meth (X : DT2) is begin null; end;  --  Test
   procedure Meth (X : DT2) is begin null; end;  --  Test
begin
begin
   null;
   null;
end;
end;
 
 

powered by: WebSVN 2.1.0

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