Debian Codegraph @

gcc/testsuite/gnat.dg/specs/class_wide1.ads

raw
1 -- { dg-do compile }
2
3 with Ada.Containers.Indefinite_Vectors;
4
5 generic
6 package Class_Wide1 is
7
8 type R is tagged record
9 X : Integer;
10 end record;
11
12 package V is new Ada.Containers.Indefinite_Vectors (Positive, R);
13 package V_CW is new Ada.Containers.Indefinite_Vectors (Positive, R'Class);
14
15 function F1 (VV : V.Vector) return Integer is (VV (1).X);
16 function F2 (VV : V_CW.Vector) return Integer is (VV (1).Element.X);
17 function F3 (VV : V_CW.Vector) return Integer is (VV (1).X);
18
19 end Class_Wide1;