Files
clang-p2996/flang/test/Semantics/OpenMP/simd03.f90
Kiran Chandramohan 3323a4bd3d [Flang][OpenMP] NFC: Remove omp prefix of test files in OpenMP Semantics
For tests in the OpenMP sub-directory the `omp` prefix is removed.
2023-02-25 11:21:38 +00:00

27 lines
521 B
Fortran

! RUN: %S/test_errors.sh %s %t %flang -fopenmp
! XFAIL: *
! OpenMP Version 4.5
! 2.8.1 simd Construct
! An ordered construct with the simd clause is the only OpenMP construct
! that can be encountered during execution of a simd region.
program omp_simd
integer i, j, k
integer, allocatable :: a(:)
allocate(a(10))
!$omp simd
do i = 1, 10
!ERROR: Invalid OpenMP construct inside simd region
!$omp single
a(i) = i
!$omp end single
end do
!$omp end simd
print *, a
end program omp_simd