aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gnat.dg/init_scalar1.adb
blob: 2688e929896fb78a01bee582391f722bcb999e70 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--  { dg-do run }
--  { dg-options "-gnatws -gnatVa" }

pragma Initialize_Scalars;
procedure init_scalar1 is
  type Fixed_3T is delta 2.0 ** (- 4)
      range - 2.0 ** 19 ..  (2.0 ** 19 - 2.0 ** (- 4));
  for Fixed_3T'Size use 3*8;

  Write_Value : constant Fixed_3T := Fixed_3T(524287.875);
  type singleton is array (1 .. 1) of Fixed_3T;
  pragma Pack (singleton);
  it : Singleton;
begin
   null;
end;