aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/goacc/kernels-loops-adjacent.f95
blob: fb92da8c08ba6e00662bd0f1777c99f9f4eeab29 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
! { dg-additional-options "-O2" }

program main
   implicit none

   integer :: a(10000), b(10000)
   integer :: d

   !$acc kernels
   a = 1
   b = 2
   a = a + b
   !$acc end kernels

   d = sum(a)

   print *,d
end program main