llvm-project/flang/test/Parser/at-process.f90
Kelvin Li 2849e11907 [flang] Handle @PROCESS directive
Treat lines that start with @process as a comment line. The directive
is accepted and ignored.

Differential Revision: https://reviews.llvm.org/D150883
2023-05-21 22:37:28 -04:00

24 lines
362 B
Fortran

! RUN: not %flang_fc1 -fsyntax-only %s 2>&1 | FileCheck %s
! Test ignoring @PROCESS directive in free source form
@process opt(3)
@process opt(0)
@process strict
@processopt(3)
subroutine f()
print *, "@process"
! @process
end subroutine f
!CHECK: error: expected '('
@p
!CHECK: error: expected '('
@proce
!CHECK: error: expected '('
@precoss
end