Update test to be compatible with Ada 2005.
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 22 Feb 2007 09:06:03 +0000 (09:06 +0000)
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 22 Feb 2007 09:06:03 +0000 (09:06 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@122222 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ada/acats/tests/c9/c96004a.ada
gcc/testsuite/ada/acats/tests/c9/c96007a.ada

index 14967c4..f5357fc 100644 (file)
@@ -92,7 +92,7 @@ BEGIN
           END;
 
           BEGIN
-               YR := IDENT_INT(2100);
+               YR := IDENT_INT(YEAR_NUMBER'LAST + 1);
                FAILED ("EXCEPTION NOT RAISED - (A)3");
                IF NOT EQUAL (YR, YR) THEN
                     COMMENT ("NO EXCEPTION RAISED");
index b961d79..beda25f 100644 (file)
@@ -136,7 +136,7 @@ BEGIN
           END;
 
           BEGIN
-               BAD_TIME := TIME_OF (2100, 8, 13);
+               BAD_TIME := TIME_OF (YEAR_NUMBER'LAST + 1, 8, 13);
                FAILED ("EXCEPTION NOT RAISED - 2100 (B)");
           EXCEPTION
                WHEN CONSTRAINT_ERROR =>