summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gnat.dg/lto18.adb
blob: ab4085e1ad6cc3341c71e3fbb262de5909d9050e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
-- { dg-do compile }
-- { dg-options "-flto" { target lto } }

package body Lto18 is

   procedure Proc (Driver : Rec) is
      R : Path;
   begin
      for I in Driver.Step'Range loop
         R := Get (Driver, 1, Driver.Step (I));
         R := Get (Driver, 2, Driver.Step (I));
         R := Get (Driver, 3, Driver.Step (I));
      end loop;
   end;

end Lto18;