* gcc-interface/decl.c (gnat_to_gnu_field): Do not set the alignment
[official-gcc.git] / gcc / testsuite / gnat.dg / alignment13.adb
blobdd0b25425f0c121de5414a07473fec4579750ff4
1 -- { dg-do run }
2 -- { dg-options "-gnatws" }
4 procedure Alignment13 is
6 type Rec is record
7 I1 : aliased Short_Integer;
8 I2 : Integer;
9 end record;
11 for Rec use record
12 I1 at 0 range 0 .. 15;
13 end record;
15 R : Rec;
17 begin
18 if R.I2'Bit_Position /= 32 then
19 raise Program_Error;
20 end if;
21 end;