* gnat.dg/test_ai254.adb: New test.
authorArnaud Charlet <charlet@adacore.com>
Mon, 4 Aug 2008 12:13:10 +0000 (12:13 +0000)
committerArnaud Charlet <charlet@gcc.gnu.org>
Mon, 4 Aug 2008 12:13:10 +0000 (14:13 +0200)
From-SVN: r138609

gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/test_ai254.adb [new file with mode: 0644]

index 9c40d95..8c0f18e 100644 (file)
@@ -1,6 +1,7 @@
 2008-08-04  Arnaud Charlet  <charlet@adacore.com>
 
        * gnat.dg/bip_aggregate_bug.adb: New test.
+       * gnat.dg/test_ai254.adb: New test.
 
 2008-08-03  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
 
diff --git a/gcc/testsuite/gnat.dg/test_ai254.adb b/gcc/testsuite/gnat.dg/test_ai254.adb
new file mode 100644 (file)
index 0000000..18f6583
--- /dev/null
@@ -0,0 +1,12 @@
+--  { dg-do compile }
+
+procedure test_ai254 is
+   function Func
+      (Obj : not null access protected function (X : Float) return Float)
+      return not null access protected function (X : Float) return Float is
+   begin
+      return null;
+   end;
+begin
+   null;
+end;