gcc/testsuite/gnat.dg/specs/aggr11.ads
raw| 1 | -- PR ada/123861 |
| 2 | -- { dg-do compile } |
| 3 | -- { dg-options "-gnat2022" } |
| 4 | |
| 5 | with Ada.Containers.Vectors; |
| 6 | |
| 7 | package Aggr11 is |
| 8 | |
| 9 | package Vectors is new Ada.Containers.Vectors (Positive, Integer); |
| 10 | use Vectors; |
| 11 | |
| 12 | A : constant Vector := []; |
| 13 | B : constant Boolean := [] = A; -- ICE |
| 14 | C : constant Boolean := Vector'[] = A; -- Works |
| 15 | D : constant Boolean := A = []; -- Works |
| 16 | |
| 17 | end Aggr11; |