view gcc/testsuite/gnat.dg/max_align.adb @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 04ced10e8804
children
line wrap: on
line source

--  { 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;