We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fce2f80 commit 4825e9aCopy full SHA for 4825e9a
flang/test/Semantics/OpenACC/bug135810-1.f90
@@ -1,9 +1,14 @@
1
! RUN: %python %S/../test_errors.py %s %flang -fopenacc
2
-integer function square(x)
+integer function square(x, y)
3
implicit none
4
- integer, intent(in) :: x
+ integer, intent(in) :: x, y
5
+ !$acc parallel self(x * 2 > x) ! ok
6
+ !$acc end parallel
7
!ERROR: Must have LOGICAL type, but is INTEGER(4)
8
!$acc parallel self(x * 2)
9
!$acc end parallel
10
+!ERROR: SELF clause on the PARALLEL directive only accepts optional scalar logical expression
11
+ !$acc parallel self(x, y)
12
13
square = x * x
14
end function square
0 commit comments