[AArch64] Fix brackets warning in assert. NFC
[llvm-project.git] / flang / test / Semantics / OpenACC / acc-resolve04.f90
blob8a72630a2ec9ffa83d516d4e93f058ed976c7293
1 ! RUN: %flang_fc1 -fopenacc %s
3 ! Check common block resolution.
4 ! Check that symbol are correctly resolved in device, host and self clause.
6 subroutine sub(a)
7 implicit none
8 real :: a(10)
9 real :: b(10), c(10), d
10 common/foo/ b, d, c
11 integer :: i, n
13 !$acc declare present(/foo/)
14 !$acc parallel loop gang vector
15 do i = 1, n
16 b(i) = a(i) + c(i) * d
17 end do
18 end subroutine
20 program test_resolve04
21 real :: a(10), b(10)
22 common /foo/ b, c
24 !$acc data create(/foo/)
25 !$acc update device(/foo/)
26 !$acc update host(/foo/)
27 !$acc update self(/foo/)
28 !$acc end data
30 !$acc data copy(/foo/)
31 !$acc end data
33 end