☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
gnat.dg
/
ancestor_type.adb
☽
☼
gcc/testsuite/gnat.dg/ancestor_type.adb
code
plain
raw
1
-- { dg-do compile }
2
3
package body Ancestor_Type is
4
5
package body B is
6
function make return T is
7
begin
8
return (T with n => 0); -- { dg-error "expect ancestor" }
9
end make;
10
11
end B;
12
13
end Ancestor_Type;