2010-04-20 Richard Guenther <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gnat.dg / init_scalar1.adb
blob2688e929896fb78a01bee582391f722bcb999e70
1 -- { dg-do run }
2 -- { dg-options "-gnatws -gnatVa" }
4 pragma Initialize_Scalars;
5 procedure init_scalar1 is
6 type Fixed_3T is delta 2.0 ** (- 4)
7 range - 2.0 ** 19 .. (2.0 ** 19 - 2.0 ** (- 4));
8 for Fixed_3T'Size use 3*8;
10 Write_Value : constant Fixed_3T := Fixed_3T(524287.875);
11 type singleton is array (1 .. 1) of Fixed_3T;
12 pragma Pack (singleton);
13 it : Singleton;
14 begin
15 null;
16 end;