aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gnat.dg/pack15.ads
blob: 94be462c084da0784aa3abb03c2729733625abff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package Pack15 is

  type Flags is array (1..2) of Boolean;
  for Flags'Component_Size use 1;

  type Messages is record
    Status_Flags : Flags;
  end record;

  for Messages use record
    Status_Flags at 0 range 1 .. 2;
  end record;

  O : Messages;

  Buffer : Integer;
  Status_Flags : Flags;
  for Status_Flags'Address use Buffer'Address;

  procedure Transfer;

end Pack15;