RISC-V: Add support for riscv-*-*.
[official-gcc.git] / gcc / testsuite / gnat.dg / release_unc_maxalign.adb
blob245ce2190fe9735c360f0b3976cac7186484b2a4
1 -- { dg-do run }
3 with Ada.Unchecked_Deallocation;
5 procedure Release_UNC_Maxalign is
7 type List is array (Natural range <>) of Integer;
8 for List'Alignment use Standard'Maximum_Alignment;
10 type List_Access is access all List;
12 procedure Release is new Ada.Unchecked_Deallocation
13 (Object => List, Name => List_Access);
15 My_List : List_Access;
16 begin
17 My_List := new List (1 .. 3);
18 Release (My_List);
19 end;