Require target lra in gcc.dg/pr108095.c
[official-gcc.git] / gcc / testsuite / gnat.dg / warn22.adb
blob0a1692f6f49f42b0b0d9c10f780619598ad8e7f7
1 -- { dg-do compile }
2 -- { dg-options "-gnatwa" }
4 with Ada.Text_IO;
6 procedure Warn22
7 is
8 type X is
9 record
10 Str : String (1 .. 3);
11 end record;
13 type T is
14 record
15 Value : X;
16 end record;
18 procedure Consume_Data (Item : out T) is
19 begin
20 Item := (Value => (Str => "Bar"));
21 end Consume_Data;
23 Baz : T;
24 begin
26 Baz := (Value => (Str => "Foo"));
28 Ada.Text_IO.Put_Line (Baz.Value.Str);
30 Consume_Data (Baz);
32 Ada.Text_IO.Put_Line (Baz.Value.Str);
34 end Warn22;