Require target lra in gcc.dg/pr108095.c
[official-gcc.git] / gcc / testsuite / gnat.dg / aggr27.adb
blob43b620680626959f95b722b56a020e6681cb522b
1 -- { dg-do run }
2 -- { dg-options "-gnatws -gnata" }
4 with GNAT.Random_Numbers;
6 procedure Aggr27 is
8 Gen: GNAT.Random_Numbers.Generator;
10 function Random return Long_Long_Integer is
11 Rand : Integer := GNAT.Random_Numbers.Random(Gen);
12 begin
13 return Long_Long_Integer(Rand);
14 end Random;
16 type Values is range 1 .. 4;
18 Seq_LLI : array (Values) of Long_Long_Integer := (others => Random);
19 Seq_I : array (Values) of Integer := (others => Integer(Random));
21 begin
22 -- Verify that there is at least two different entries in each.
24 pragma Assert (For some E of Seq_LLI => E /= Seq_LLI (Values'First));
25 pragma Assert (For some E of Seq_I => E /= Seq_I (Values'First));
26 end Aggr27;