diff options
Diffstat (limited to 'gcc-4.3.1/gcc/ada/a-assert.ads')
-rwxr-xr-x | gcc-4.3.1/gcc/ada/a-assert.ads | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/gcc-4.3.1/gcc/ada/a-assert.ads b/gcc-4.3.1/gcc/ada/a-assert.ads new file mode 100755 index 000000000..614421b7e --- /dev/null +++ b/gcc-4.3.1/gcc/ada/a-assert.ads @@ -0,0 +1,33 @@ +------------------------------------------------------------------------------ +-- -- +-- GNAT RUN-TIME COMPONENTS -- +-- -- +-- A D A . A S S E R T -- +-- -- +-- S p e c -- +-- -- +-- This specification is derived from the Ada Reference Manual for use with -- +-- GNAT. In accordance with the copyright of that document, you can freely -- +-- copy and modify this specification, provided that if you redistribute a -- +-- modified version, any changes that you have made are clearly indicated. -- +-- -- +------------------------------------------------------------------------------ + +-- We do a with of System.Assertions to get hold of the exception (following +-- the specific RM permission that lets' Assertion_Error being a renaming). +-- The suppression of Warnings stops the warning about bad categorization. + +pragma Warnings (Off); +with System.Assertions; +pragma Warnings (On); + +package Ada.Assertions is + pragma Pure (Assertions); + + Assertion_Error : exception renames System.Assertions.Assert_Failure; + + procedure Assert (Check : Boolean); + + procedure Assert (Check : Boolean; Message : String); + +end Ada.Assertions; |