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/] [tamdt.adb] - Blame information for rev 304

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 304 jeremybenn
 
2
with Tamdt_Aux;
3
 
4
package body TAMDT is
5
   type TAMT1 is new Tamdt_Aux.Priv (X => 1);
6
   type TAMT2 is new Tamdt_Aux.Priv;
7
 
8
   procedure Check is
9
      Ptr1 : TAMT1_Access := new TAMT1;
10
      Ptr2 : TAMT2_Access := new TAMT2 (X => 2);
11
   begin
12
      if Ptr1.all.X /= 1 then
13
         raise Program_Error;
14
      end if;
15
      if Ptr2.all.X /= 2 then
16
         raise Program_Error;
17
      end if;
18
   end;
19
end;

powered by: WebSVN 2.1.0

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