Skip to content

Commit 4825e9a

Browse files
committed
more tests
1 parent fce2f80 commit 4825e9a

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed
Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
! RUN: %python %S/../test_errors.py %s %flang -fopenacc
2-
integer function square(x)
2+
integer function square(x, y)
33
implicit none
4-
integer, intent(in) :: x
4+
integer, intent(in) :: x, y
5+
!$acc parallel self(x * 2 > x) ! ok
6+
!$acc end parallel
57
!ERROR: Must have LOGICAL type, but is INTEGER(4)
68
!$acc parallel self(x * 2)
79
!$acc end parallel
10+
!ERROR: SELF clause on the PARALLEL directive only accepts optional scalar logical expression
11+
!$acc parallel self(x, y)
12+
!$acc end parallel
813
square = x * x
914
end function square

0 commit comments

Comments
 (0)