Mercurial > hg > CbC > CbC_gcc
view libgomp/testsuite/libgomp.fortran/declare-target-2.f90 @ 143:76e1cf5455ef
add cbc_gc test
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 23 Dec 2018 19:24:05 +0900 |
parents | 84e7813d76e9 |
children | 1830386684a0 |
line wrap: on
line source
! 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) if (var_x /= 20) STOP 1 end subroutine foo