forked from OSchip/llvm-project
23 lines
341 B
Fortran
23 lines
341 B
Fortran
! RUN: %S/test_errors.sh %s %t %f18 -fopenmp
|
|
! XFAIL: *
|
|
|
|
! 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
|