Debian Codegraph @

gcc/testsuite/gnat.dg/abstract_state1.ads

raw
1 package Abstract_State1
2 with Abstract_State => null,
3 Initializes => null
4 is
5 type Complex (B : Boolean) is tagged private;
6 type No_F is tagged private;
7 X : constant No_F;
8
9 procedure Foo;
10
11 private
12 type Complex (B : Boolean) is tagged record
13 G : Integer;
14 case B is
15 when True =>
16 F : Integer;
17 when False =>
18 null;
19 end case;
20 end record;
21
22 type No_F is new Complex (False) with null record;
23 X : constant No_F := (B => False, G => 7);
24 end Abstract_State1;