summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gnat.dg/specs/static_initializer.ads
blob: 8755c30d17be0367f12850c681ea51c03c521fcb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
-- { dg-do compile }

package static_initializer is

  type Vector is array (1 .. 3) of Float;
  type Arr is array (Integer range 1 .. 3) of Vector;

  Pos : constant Arr := ((0.0, 1.0, 2.0),
                         (0.5, 1.5, 2.5),
                         (1.0, 2.0, 4.0));

end;

-- { dg-final { scan-assembler-not "elabs" } }