Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gnat.dg/expr_func7.ads @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | 84e7813d76e9 |
children |
line wrap: on
line source
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;