Skip to content

Commit 5f0a381

Browse files
author
Eric Botcazou
committed
Add regression test
gcc/testsuite/ PR ada/116190 * gnat.dg/aggr31.adb: New test.
1 parent 8da27c7 commit 5f0a381

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

gcc/testsuite/gnat.dg/aggr31.adb

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
-- { dg-do run }
2+
-- { dg-options "-gnat2022" }
3+
4+
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
5+
6+
procedure Aggr31 is
7+
8+
My_Array : constant array (1 .. 5) of Unbounded_String :=
9+
[others => To_Unbounded_String ("Test")];
10+
11+
This_Crashes : constant array (Natural range <>) of Unbounded_String :=
12+
[for I of My_Array => I];
13+
14+
begin
15+
null;
16+
end;
17+

0 commit comments

Comments
 (0)