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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gnat.dg/] [interface_conv.adb] - Blame information for rev 316

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 304 jeremybenn
-- { dg-do run }
2
 
3
procedure Interface_Conv is
4
   package Pkg is
5
      type I1 is interface;
6
      procedure Prim (X : I1) is null;
7
      type I2 is interface;
8
      procedure Prim (X : I2) is null;
9
      type DT is new I1 and I2 with null record;
10
   end Pkg;
11
   use Pkg;
12
   Obj  : DT;
13
   CW_3 : I2'Class := Obj;
14
   CW_5 : I1'Class := I1'Class (CW_3);  --  test
15
begin
16
   null;
17
end;

powered by: WebSVN 2.1.0

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