2 -- { dg-options "-gnat12" }
5 type Int_Ref
is access all Integer;
8 procedure update_ptr
(X
: access integer) is
10 -- Failed accessibility test: supposed to raise a Program_Error
15 ref
: access integer := new integer;
22 -- As the call to bar must raise a Program_Error, the following is not supposed to be executed:
23 raise Constraint_Error
;