PR target/84336
[official-gcc.git] / gcc / testsuite / gnat.dg / debug5.adb
blob6569a15802963821f728faf2e66cf44981aeffa0
1 -- { dg-do compile }
2 -- { dg-options "-g" }
4 procedure Debug5 is
6 type Record_Type (L1, L2 : Natural) is record
7 S1 : String (1 .. L1);
8 case L2 is
9 when 0 => null;
10 when others => S2 : String (L1 .. L2);
11 end case;
12 end record;
14 procedure Discard (R : Record_Type) is
15 begin
16 null;
17 end Discard;
19 R : constant Record_Type := (0, 0, others => <>);
20 begin
21 Discard (R);
22 end Debug5;