diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 9c40d9595cc..8c0f18eb123 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 00000000000..18f65837259 --- /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;