aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/goacc/uninit-copy-clause.f95
blob: b2aae1df5229508535a098d81d1a406e0eda20df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
! { dg-do compile }
! { dg-additional-options "-Wuninitialized" }

subroutine foo
  integer :: i

  !$acc kernels
  i = 1
  !$acc end kernels

end subroutine foo

subroutine foo2
  integer :: i

  !$acc kernels copy (i)
  i = 1
  !$acc end kernels

end subroutine foo2

subroutine foo3
  integer :: i

  !$acc kernels copyin (i)
  i = 1
  !$acc end kernels

end subroutine foo3