summaryrefslogtreecommitdiff
path: root/gcc/ada/a-assert.ads
diff options
context:
space:
mode:
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2007-08-14 08:48:27 +0000
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2007-08-14 08:48:27 +0000
commit3355b3b1f288c4f896f12cb973ec1926aee8bb55 (patch)
tree190c0fcc941968be691aa7eaf9126fa0bfed8d17 /gcc/ada/a-assert.ads
parent18eac1ce25c9734a5ab7074bc9354f9cf77bc0f9 (diff)
downloadgcc-3355b3b1f288c4f896f12cb973ec1926aee8bb55.tar.gz
2007-08-14 Paul Hilfinger <hilfinger@adacore.com>
* impunit.adb: Re-organize System.Random_Numbers and GNAT.Random_Numbers and add to builds. * Makefile.rtl: Add s-rannum.ad* and g-rannum.ad*, a-assert* * s-rannum.ads, s-rannum.adb, g-rannum.ads, g-rannum.adb: New files. * a-assert.ads, a-assert.adb: New files. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@127454 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/a-assert.ads')
-rwxr-xr-xgcc/ada/a-assert.ads33
1 files changed, 33 insertions, 0 deletions
diff --git a/gcc/ada/a-assert.ads b/gcc/ada/a-assert.ads
new file mode 100755
index 00000000000..614421b7e4e
--- /dev/null
+++ b/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;