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

Subversion Repositories openrisc_2011-10-31

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 304 jeremybenn
--  { dg-do compile }
2
 
3
procedure Self1 is
4
   type Event;
5
 
6
   type Link (E : access Event) is limited record
7
      Val : Integer;
8
   end record;
9
 
10
   type Ptr is access all Event;
11
 
12
   type Event is tagged limited record
13
      Inner : Link (Event'access);
14
      Size  : Integer;
15
   end record;
16
 
17
   Obj2 : Ptr := new Event'(Inner => (Event'access, 15),
18
                            Size => Link'size);
19
begin
20
   null;
21
end;

powered by: WebSVN 2.1.0

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