summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gnat.dg/specs/constant1_pkg.ads
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gnat.dg/specs/constant1_pkg.ads')
-rw-r--r--gcc/testsuite/gnat.dg/specs/constant1_pkg.ads11
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/testsuite/gnat.dg/specs/constant1_pkg.ads b/gcc/testsuite/gnat.dg/specs/constant1_pkg.ads
new file mode 100644
index 000000000..13300b1ad
--- /dev/null
+++ b/gcc/testsuite/gnat.dg/specs/constant1_pkg.ads
@@ -0,0 +1,11 @@
+package Constant1_Pkg is
+
+ type Id_T is mod Natural'Last + 1;
+
+ type Timer_Id_T is tagged record
+ Id : Id_T := Id_T'Last;
+ end record;
+
+ Null_Timer_Id : constant Timer_Id_T := (Id => Id_T'Last - 1);
+
+end Constant1_Pkg;