summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gnat.dg/max_align.adb
blob: 702bbaca4492e8d59560d5fcf38d95dfc07ee6c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--  { dg-do compile }

procedure Max_Align is
   type Block is record
      X : Integer;
   end record;
   for Block'Alignment use Standard'Maximum_Alignment;

   type Block_Access is access Block;
   Ptr : Block_Access := new Block;
begin
   null;
end;