When parsing a specification part, the parser will look ahead to see if the next construct is an executable construct. In doing so it will invoke OpenMPConstruct parser, whereas the only necessary thing to check would be the directive alone.
6 lines
123 B
Fortran
6 lines
123 B
Fortran
! RUN: not %flang_fc1 -fsyntax-only -fopenmp %s 2>&1 | FileCheck %s
|
|
|
|
!$omp parallel
|
|
! CHECK: error: expected '!$OMP '
|
|
end
|