return Nkind (Par) in N_Subprogram_Call;
end Is_Anonymous_Access_Actual;
+ ------------------------
+ -- Is_Access_Variable --
+ ------------------------
+
+ function Is_Access_Variable (E : Entity_Id) return Boolean is
+ begin
+ return Is_Access_Object_Type (E)
+ and then not Is_Access_Constant (E);
+ end Is_Access_Variable;
+
-----------------------------
-- Is_Actual_Out_Parameter --
-----------------------------
then
return True;
- -- A constant is a synchronized object by default
+ -- A constant is a synchronized object by default, unless its type is
+ -- access-to-variable type.
- elsif Ekind (Id) = E_Constant then
+ elsif Ekind (Id) = E_Constant
+ and then not Is_Access_Variable (Etype (Id))
+ then
return True;
-- A variable is a synchronized object if it is subject to pragma
-- True if E is the constructed wrapper for an access_to_subprogram
-- type with Pre/Postconditions.
+ function Is_Access_Variable (E : Entity_Id) return Boolean;
+ -- Determines if type E is an access-to-variable
+
function Is_Actual_In_Out_Parameter (N : Node_Id) return Boolean;
-- Determines if N is an actual parameter of in-out mode in a subprogram
-- call.
-- such, the object must be
-- * Of a type that yields a synchronized object
-- * An atomic object with enabled Async_Writers
- -- * A constant
+ -- * A constant not of access-to-variable type
-- * A variable subject to pragma Constant_After_Elaboration
function Is_Synchronized_Tagged_Type (E : Entity_Id) return Boolean;