Commit f6879a75 by Arnaud Charlet Committed by Arnaud Charlet

* gnat.dg/interface5.ad[sb]: New test.

From-SVN: r135995
parent aeff280b
2008-05-27 Arnaud Charlet <charlet@adacore.com>
* gnat.dg/sync1.ad[sb]: New test.
* gnat.dg/interface5.ad[sb]: New test.
2008-05-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
......
-- { dg-do compile }
package body interface5 is
function F (Object : Child) return access Child is
begin
return null;
end F;
end interface5;
package interface5 is
type B is tagged null record;
type I is interface;
function F (Object : I) return access I is abstract;
type Child is new B and I with null record;
function F (Object : Child) return access Child;
end interface5;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment