2 -- { dg-options "-gnata" }
5 type U64
is mod 2 ** 64;
6 Maybe
: Boolean := 2 ** 10 < U64
'Succ (U64
'last - 1);
7 For_Sure
: Boolean := U64
'(18446744073709551615) > 2;
8 Ditto : Boolean := 18446744073709551615 > 2;
14 pragma Assert (for all K in 1 .. 2 => 2 ** K <= TG'Last);
15 pragma Assert (for all K in 1 .. 2 => 2 ** K <= TG'Last - 1);
17 Maybe : Boolean := 2 ** 10 < TG'Succ (TG'last - 1);
18 For_Sure : Boolean := TG'(18446744073709551615) > 2;
21 package IG
is new PG
(U64
);
24 pragma Assert
(for all K
in 1 .. 2 => 2 ** K
<= U64
'Last);
25 pragma Assert
(for all K
in 1 .. 2 => 2 ** K
<= U64
'Last - 1);