blob: 11aaa8ffc54f0d1031f4e02469df8ed7e928e8db [file] [edit]
! RUN: %python %S/../test_errors.py %s %flang -fopenmp
! Test the source code starting with omp syntax
! The directive is in the specification part of a main program, which is not a
! subroutine subprogram, function subprogram, or interface body.
!ERROR: DECLARE SIMD directive must appear in the specification part of a subroutine subprogram, function subprogram, or interface body
!$omp declare simd
integer :: x
end