summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gnat.dg/assign_from_packed_pixels.ads
blob: 66ade8a84c40b957756a914069fff8b1be03c703 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package Assign_From_Packed_Pixels is

   type U16 is mod 2 ** 16;

   type Position is record
      X, Y, Z : U16;
   end record;
   for Position'Size use 48;

   type Pixel is record
      Pos : Position;
   end record;
   pragma Pack (Pixel);

   Minus_One : Integer := -1;
   Pix : Pixel := (Pos => (X => 0, Y => 0, Z => 0));
end;