Files
clang-p2996/flang/test/Semantics/OpenMP/simd03.f90
Kiran Chandramohan 879b7268b8 [Flang][OpenMP] Reenable and fix final few tests 6/6 (#93295)
Add do02.f90 and taskloop03.f90 that were removed in
https://github.com/llvm/llvm-project/pull/92739
Replace shell script tests with python.
2024-05-24 14:31:09 +01:00

27 lines
538 B
Fortran

! RUN: %python %S/../test_errors.py %s %flang_fc1 %openmp_flags
! 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