* snames.ads-tmpl (Name_Ivdep): New pragma-related name.
[official-gcc.git] / gcc / testsuite / gnat.dg / opt4.adb
blobcaa5ab3a6cb37b631c157f635d06d9429d89e17d
1 -- { dg-do run }
2 -- { dg-options "-O2" }
4 procedure Opt4 is
6 type Rec (D : Natural) is record
7 S : String (1..D);
8 end record;
10 procedure Test (R : Rec) is
11 begin
12 if R.D /= 9 then
13 raise Program_Error;
14 end if;
15 end;
17 R : Rec(9);
19 begin
20 R := (9, "123456789");
21 Test (R);
22 end;