Files
clang-p2996/flang/test/Semantics/OpenMP/simd02.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

22 lines
340 B
Fortran

! RUN: %python %S/../test_errors.py %s %flang -fopenmp
! OpenMP Version 4.5
! 2.8.1 simd Construct
! Semantic error for correct test case
program omp_simd
integer i, j, k
integer, allocatable :: a(:)
allocate(a(10))
!$omp simd aligned(a)
do i = 1, 10
a(i) = i
end do
!$omp end simd
print *, a
end program omp_simd