Fortran: Use OpenACC's acc_on_device builtin, fix OpenMP' __builtin_is_initial_device
[official-gcc.git] / gcc / testsuite / gnat.dg / opt74_pkg.adb
blob4d5ce4fa822b62fee4f0c1742b7f80c95ee93ddb
1 package body Opt74_Pkg is
3 procedure Proc (Found : out Integer; Index : out Integer) is
4 begin
5 Index := 1;
6 Found := 0;
7 while (Index <= A'Last) and (Found = 0) loop
8 if A (Index) = 2 then
9 Found := 1;
10 else
11 Index := Index + 1;
12 end if;
13 end loop;
14 end;
16 end Opt74_Pkg;