[Ada] Fix analysis of access objects in Depends contracts
authorPiotr Trojanek <trojanek@adacore.com>
Mon, 16 Nov 2020 14:21:20 +0000 (15:21 +0100)
committerPierre-Marie de Rodat <derodat@adacore.com>
Mon, 14 Dec 2020 15:51:49 +0000 (10:51 -0500)
commitefec136240f464eaa89d75c3d68f1f51627e931d
treeb0388a7a801887f73f9430c97a2ea2373d6af38f
parentae8c56262d635eefdb32fc4e1b8d896453348c00
[Ada] Fix analysis of access objects in Depends contracts

gcc/ada/

* sem_prag.adb (Find_Role): Constant object of
access-to-constant and access-to-subprogram types are not
writable.
(Collect_Subprogram_Inputs_Outputs): In-parameters of
access-to-variable type can act as outputs of the Depends
contracts.
gcc/ada/sem_prag.adb