ubuntu-buildroot/output/build/host-gcc-initial-11.4.0/gcc/testsuite/gnat.dg/expr_func7.ads

21 lines
444 B
Ada
Raw Normal View History

2024-04-01 15:19:46 +00:00
package Expr_Func7 is
type Abstract_Food is tagged null record;
type Abstract_Food_Access is access Abstract_Food'Class;
type Fruit is new Abstract_Food with record
Worm : Boolean;
end record;
type Bananas is tagged record
Inside : Abstract_Food_Access;
end record;
function Has_Worm
(B : Bananas) return Boolean is (Fruit (B.Inside.all).Worm);
Cool : Bananas;
procedure Dummy;
end Expr_Func7;