summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gnat.dg/loop_optimization7.adb
blob: 166839494658e67da9fa926d303b8bf1ae2164dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
-- { dg-do compile }
-- { dg-options "-O3" }
-- { dg-options "-O3 -msse" { target i?86-*-* x86_64-*-* } }

package body Loop_Optimization7 is

  function Conv (A : Arr) return Arr is
    Result : Arr;
  begin
    for I in A'Range loop
      Result (I) := Conv (A (I));
    end loop;
    return Result;
  end;

end Loop_Optimization7;