view gcc/testsuite/gnat.dg/predicate13.ads @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents
children
line wrap: on
line source

--  { dg-do compile }
generic
package Predicate13 is

    function Valid return Boolean is
    (True);

    function Foo return Boolean is
    (True);

    type State_Type is (Valid, Invalid);
    type Context_Type is private;

    private

    type Context_Type is
    record
    State : State_Type;
    end record  with Dynamic_Predicate => (State = Valid);

    procedure Dummy;

end Predicate13;