From: Arnaud Charlet Date: Mon, 4 Aug 2008 12:13:10 +0000 (+0000) Subject: * gnat.dg/test_ai254.adb: New test. X-Git-Tag: releases/gcc-4.4.0~3417 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=10fb8ecd51bf6ac25ee3dc9d726be52f723ecf4f;p=thirdparty%2Fgcc.git * gnat.dg/test_ai254.adb: New test. From-SVN: r138609 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 9c40d9595cc8..8c0f18eb1231 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,6 +1,7 @@ 2008-08-04 Arnaud Charlet * gnat.dg/bip_aggregate_bug.adb: New test. + * gnat.dg/test_ai254.adb: New test. 2008-08-03 Jerry DeLisle diff --git a/gcc/testsuite/gnat.dg/test_ai254.adb b/gcc/testsuite/gnat.dg/test_ai254.adb new file mode 100644 index 000000000000..18f658372592 --- /dev/null +++ b/gcc/testsuite/gnat.dg/test_ai254.adb @@ -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;