Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/goacc/pr94120-3.f90 @ 158:494b0b89df80 default tip
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:13:55 +0900 |
parents | 2b5abeee2509 |
children |
line wrap: on
line source
! { dg-do compile } ! ! PR fortran/94120 ! ! Note: BLOCK is not supported in OpenACC <= 3.0 – but the following check comes earlier: ! It is also invalid because the variable is in a different scoping unit ! subroutine g() integer :: k block !$acc declare copy(k) ! { dg-error "Variable 'k' shall be declared in the same scoping unit as !.ACC DECLARE" } end block end