PR testsuite/86649
[official-gcc.git] / gcc / testsuite / gnat.dg / opt62.adb
blobeb7a806d228f5c60202a7c4b80bb799b971dc115
1 -- { dg-do run }
2 -- { dg-options "-O" }
4 with Opt62_Pkg; use Opt62_Pkg;
6 procedure Opt62 is
8 String5 : String(1..5) := "12345";
9 D: Der := (Unconstrained_Der with D2 => 5, S2 => String5);
11 begin
12 if D.Str1 /= "abcde" then
13 raise Program_Error;
14 end if;
15 end;