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 ead87b9 commit bc6d651Copy full SHA for bc6d651
flang/test/Semantics/OpenMP/loop-transformation-clauses01.f90
@@ -7,6 +7,7 @@ subroutine loop_transformation_construct1
7
implicit none
8
integer, parameter:: i = 5
9
integer :: x
10
+ integer :: a
11
integer :: v(i)
12
13
!ERROR: At most one LOOPRANGE clause can appear on the FUSE directive
@@ -48,4 +49,18 @@ subroutine loop_transformation_construct1
48
49
v(x) = x * 2
50
end do
51
!$omp end fuse
52
+
53
+ !ERROR: Must be a constant value
54
+ !$omp fuse looprange(a,2)
55
+ do x = 1, i
56
+ v(x) = x * 2
57
+ end do
58
+ !$omp end fuse
59
60
61
+ !$omp fuse looprange(1,a)
62
63
64
65
66
end subroutine
0 commit comments