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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gnat.dg/] [release_unc_maxalign.adb] - Blame information for rev 749

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

Line No. Rev Author Line
1 696 jeremybenn
-- { dg-do run }
2
 
3
with Ada.Unchecked_Deallocation;
4
 
5
procedure Release_UNC_Maxalign is
6
 
7
   type List is array (Natural range <>) of Integer;
8
   for List'Alignment use Standard'Maximum_Alignment;
9
 
10
   type List_Access is access all List;
11
 
12
   procedure Release is new Ada.Unchecked_Deallocation
13
     (Object => List, Name => List_Access);
14
 
15
   My_List : List_Access;
16
begin
17
   My_List := new List (1 .. 3);
18
   Release (My_List);
19
end;

powered by: WebSVN 2.1.0

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