Require target lra in gcc.dg/pr108095.c
[official-gcc.git] / gcc / testsuite / gnat.dg / predicate4_pkg.ads
blob1b2e62d84315cc6c4b41d377c3d7a43e8a2e39ba
1 generic
2 type Value_Type is private;
3 package Predicate4_Pkg is
4 type MT (Has : Boolean := False) is record
5 case Has is
6 when False =>
7 null;
8 when True =>
9 MX : Value_Type;
10 end case;
11 end record;
13 function Foo (M : MT) return Boolean is (not M.Has);
14 subtype LT is MT with Dynamic_Predicate => not LT.Has;
15 function Bar (M : MT) return Boolean is (Foo (M));
16 end;