summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gnat.dg/alignment8.adb
blob: 06136c36e0e5484cf4c5d642c1b3cdacc2ee2447 (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 Alignment8 is

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

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

  V : R;

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