* gnat.dg/specs/array_no_def_init.ads: New test.
authorArnaud Charlet <charlet@adacore.com>
Mon, 26 May 2008 15:16:39 +0000 (15:16 +0000)
committerArnaud Charlet <charlet@gcc.gnu.org>
Mon, 26 May 2008 15:16:39 +0000 (17:16 +0200)
From-SVN: r135939

gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/specs/array_no_def_init.ads [new file with mode: 0644]

index 5f0d17b26ab7e7f3eda48df078ec19f427c32490..8a5e58fd96996279338662576820173f1a6f8110 100644 (file)
@@ -1,3 +1,7 @@
+2008-05-26  Arnaud Charlet  <charlet@adacore.com>
+
+       * gnat.dg/specs/array_no_def_init.ads: New test.
+
 2008-05-26  Kai Tietz  <kai.tietz@onevision.com>
 
        * gcc-c.torture/execute/pr36321.c: New.
diff --git a/gcc/testsuite/gnat.dg/specs/array_no_def_init.ads b/gcc/testsuite/gnat.dg/specs/array_no_def_init.ads
new file mode 100644 (file)
index 0000000..b7a024d
--- /dev/null
@@ -0,0 +1,9 @@
+--  { dg-do compile }
+
+pragma Restrictions (No_Default_Initialization);
+package Array_No_Def_Init is
+        
+   type Int_Array is array (Natural range <>) of Integer;
+   IA : Int_Array (1 .. 10);
+        
+end Array_No_Def_Init;