public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-5723] [Ada] Add contract to Ada.Task_Identification.Activation_Is_Complete
@ 2021-12-02 16:28 Pierre-Marie de Rodat
0 siblings, 0 replies; only message in thread
From: Pierre-Marie de Rodat @ 2021-12-02 16:28 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:7e650bf84bf61e88f05ffbf39ca677a1e3d2714a
commit r12-5723-g7e650bf84bf61e88f05ffbf39ca677a1e3d2714a
Author: Piotr Trojanek <trojanek@adacore.com>
Date: Wed Nov 17 14:24:25 2021 +0100
[Ada] Add contract to Ada.Task_Identification.Activation_Is_Complete
gcc/ada/
* libgnarl/a-taside.ads (Activation_Is_Complete): Add
precondition.
Diff:
---
gcc/ada/libgnarl/a-taside.ads | 1 +
1 file changed, 1 insertion(+)
diff --git a/gcc/ada/libgnarl/a-taside.ads b/gcc/ada/libgnarl/a-taside.ads
index a3b1e94bd9d..682211cbf40 100644
--- a/gcc/ada/libgnarl/a-taside.ads
+++ b/gcc/ada/libgnarl/a-taside.ads
@@ -92,6 +92,7 @@ is
function Activation_Is_Complete (T : Task_Id) return Boolean with
Volatile_Function,
+ Pre => T /= Null_Task_Id,
Global => Tasking_State;
private
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-12-02 16:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-02 16:28 [gcc r12-5723] [Ada] Add contract to Ada.Task_Identification.Activation_Is_Complete Pierre-Marie de Rodat
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).