| 1 |
-- { dg-do compile } |
| 2 |
-- { dg-options "-gnatc" } |
| 3 |
|
| 4 |
with Ada.Containers.Vectors; |
| 5 |
with Limited_With4_Pkg; |
| 6 |
|
| 7 |
package Limited_With4 is |
| 8 |
|
| 9 |
type Object is tagged private; |
| 10 |
type Object_Ref is access all Object; |
| 11 |
type Class_Ref is access all Object'Class; |
| 12 |
|
| 13 |
package Vec is new Ada.Containers.Vectors |
| 14 |
(Positive, Limited_With4_Pkg.Object_Ref,Limited_With4_Pkg ."="); |
| 15 |
subtype Vector is Vec.Vector; |
| 16 |
|
| 17 |
private |
| 18 |
|
| 19 |
type Object is tagged record |
| 20 |
V : Vector; |
| 21 |
end record; |
| 22 |
|
| 23 |
end Limited_With4; |