aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/goacc/literal.f95
blob: 896749a46cb88c1b6b84b56270cffb846a9e62df (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
30
! { dg-do compile } 

module test
contains
  subroutine oacc1
    implicit none
    integer :: i
    !$acc declare device_resident (10) ! { dg-error "Syntax error" }
    !$acc data copy (10) ! { dg-error "Syntax error" }
    !$acc end data ! { dg-error "Unexpected" }
    !$acc data deviceptr (10) ! { dg-error "Syntax error" }
    !$acc end data ! { dg-error "Unexpected" }
    !$acc data private (10) ! { dg-error "Failed to match clause" }
    !$acc end data ! { dg-error "Unexpected" }
    !$acc host_data use_device (10) ! { dg-error "Syntax error" }
    !$acc end host_data ! { dg-error "Unexpected" }
    !$acc parallel loop reduction(+:10) ! { dg-error "Syntax error" }
    do i = 1,5
    enddo
    !$acc end parallel loop ! { dg-error "Unexpected" }
    !$acc parallel loop
    do i = 1,5
      !$acc cache (10) ! { dg-error "Syntax error" }
    enddo
    !$acc end parallel loop
    !$acc update device (10) ! { dg-error "Syntax error" }
    !$acc update host (10) ! { dg-error "Syntax error" }
    !$acc update self (10) ! { dg-error "Syntax error" }
  end subroutine oacc1
end module test