Print bug url for gcov-dump --help
[official-gcc.git] / libgomp / testsuite / libgomp.oacc-fortran / routine-5.f90
blob956da8ed043c2163acb0f9cf65715284c27eae74
1 ! { dg-do run }
2 ! { dg-options "-fno-inline" }
4 program main
5 integer :: n
7 n = 5
9 !$acc parallel copy (n)
10 n = func (n)
11 !$acc end parallel
13 if (n .ne. 6) call abort
15 contains
17 function func (n) result (rc)
18 !$acc routine
19 integer, intent (in) :: n
20 integer :: rc
22 rc = n
23 rc = rc + 1
25 end function
27 end program