Require target lra in gcc.dg/pr108095.c
[official-gcc.git] / gcc / testsuite / gnat.dg / static_pred1.adb
blob16bbde2c65be3ba937b51083f6821b658b35ffab
1 -- { dg-do compile }
3 package body Static_Pred1 is
5 type Enum_Type is (A, B, C);
7 subtype Enum_Subrange is Enum_Type with Static_Predicate =>
8 Enum_Subrange in A | C;
10 function "not" (Kind : Enum_Subrange) return Enum_Subrange is
11 (case Kind is
12 when A => C,
13 when C => A);
15 procedure Dummy (Value : T) is
16 IK : Enum_Subrange := not A;
17 begin
18 null;
19 end Dummy;
21 end Static_Pred1;