Require target lra in gcc.dg/pr108095.c
[official-gcc.git] / gcc / testsuite / gnat.dg / expr_func7.ads
blob47fc6f805b045454d2a51edeae18ec17d7b43278
1 package Expr_Func7 is
3 type Abstract_Food is tagged null record;
4 type Abstract_Food_Access is access Abstract_Food'Class;
6 type Fruit is new Abstract_Food with record
7 Worm : Boolean;
8 end record;
10 type Bananas is tagged record
11 Inside : Abstract_Food_Access;
12 end record;
14 function Has_Worm
15 (B : Bananas) return Boolean is (Fruit (B.Inside.all).Worm);
17 Cool : Bananas;
19 procedure Dummy;
20 end Expr_Func7;