PR target/84336
[official-gcc.git] / gcc / testsuite / gnat.dg / test_bounded.adb
blob29d94f48e34f63cfb3a2b6e2e5848b397da6bdca
1 -- { dg-do run }
2 -- { dg-options "-gnatws" }
4 procedure Test_Bounded is
5 type Bounded (Length : Natural := 0) is
6 record
7 S : String (1..Length);
8 end record;
9 type Ref is access all Bounded;
10 X : Ref := new Bounded;
11 begin
12 null;
13 end Test_Bounded;