Debian Codegraph @

gcc/testsuite/gnat.dg/specs/generic_inst2-child1.ads

raw
1 generic
2 package Generic_Inst2.Child1 is
3
4 function Get_Custom return Custom_Type;
5
6 private
7
8 type Dummy is null record;
9
10 Placeholder : constant Dummy := (null record);
11
12 -- This type conversion fails (though only when
13 -- instantiated in the other package)
14 function Get_Custom return Custom_Type is
15 (Custom_Type(Placeholder'Address));
16
17 end Generic_Inst2.Child1;