blob: 1b2e62d84315cc6c4b41d377c3d7a43e8a2e39ba [file] [log] [blame]
generic
type Value_Type is private;
package Predicate4_Pkg is
type MT (Has : Boolean := False) is record
case Has is
when False =>
null;
when True =>
MX : Value_Type;
end case;
end record;
function Foo (M : MT) return Boolean is (not M.Has);
subtype LT is MT with Dynamic_Predicate => not LT.Has;
function Bar (M : MT) return Boolean is (Foo (M));
end;