2016-11-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
[official-gcc.git] / gcc / testsuite / gnat.dg / pack11.adb
blob479062b5fd5ee480febd3babfceca262f86f3182
1 -- { dg-do run }
2 -- { dg-options "-gnatws" }
4 with System;
6 procedure Pack11 is
8 type R1 is record
9 A1, A2, A3 : System.Address;
10 end record;
12 type R2 is record
13 C : Character;
14 R : R1;
15 end record;
16 pragma Pack (R2);
18 procedure Dummy (R : R1) is begin null; end;
20 procedure Init (X : R2) is
21 begin
22 Dummy (X.R);
23 end;
25 My_R2 : R2;
27 begin
28 Init (My_R2);
29 end;