summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gnat.dg/alignment7.adb
blob: 5a3b8eb43c81f05433dc33b263a6f056e5ee84f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
-- { dg-do run }

with System;

procedure Alignment7 is

  type R is record
    I : Integer;
    F : Long_Float;
  end record;
  for R'Alignment use 8;

  procedure Q (A : System.Address) is
    F : Long_Float;
    for F'Address use A;
  begin
    F := 0.0;
  end;

  V : R;

begin
  Q (V.F'Address);
end;