2016-11-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
[official-gcc.git] / gcc / testsuite / gnat.dg / alignment1.adb
blob169e11c41492d859ba20b72a51a8a90b472f27fd
1 -- { dg-do run }
2 -- { dg-options "-gnatws" }
4 procedure alignment1 is
6 type My_Integer is record
7 Element : Integer;
8 end record;
10 F : My_Integer;
12 begin
13 if F'Alignment /= F.Element'Alignment then
14 raise Program_Error;
15 end if;
16 end;