Retro68/gcc/libgomp/testsuite/libgomp.fortran/declare-target-2.f90

19 lines
444 B
Fortran
Raw Normal View History

2015-08-28 15:33:40 +00:00
! Don't compile this anywhere, it is just auxiliary
! file compiled together with declare-target-1.f90
! to verify inter-CU module handling of omp declare target.
! { dg-do compile { target { lp64 && { ! lp64 } } } }
subroutine foo
use declare_target_1_mod
var_x = 10
!$omp target update to(var_x)
!$omp target
var_x = var_x * 2;
!$omp end target
!$omp target update from(var_x)
2018-12-28 15:30:48 +00:00
if (var_x /= 20) STOP 1
2015-08-28 15:33:40 +00:00
end subroutine foo