Files
llvm-project/flang/test/Semantics/inlinealways-directive01.f90
Jack Styles 561a0c5e30 [flang] Follow up #192674 Add INLINEALWAYS Directive (#194313)
Following some post merge review comments, this updates the work done in
#192674 based on feedback. It fixes some formatting that was not
conforming, fixes Typo's and updates the new warning's for Semantics
checks.
2026-04-29 08:54:21 +01:00

18 lines
637 B
Fortran

! Check that the appropriate warnings are emitted when using INLINEALWAYS incorrectly
! RUN: %python %S/test_errors.py %s %flang_fc1
module m
! ERROR: !DIR$ INLINEALWAYS directive with name must appear in a subprogram
!DIR$ INLINEALWAYS m
end module
subroutine test_subroutine()
! WARNING: INLINEALWAYS name 'wrong_subroutine' does not match the subprogram name 'test_subroutine' [-Wignored-directive]
!DIR$ INLINEALWAYS wrong_subroutine
end subroutine
function test_func()
! WARNING: INLINEALWAYS name 'wrong_func' does not match the subprogram name 'test_func' [-Wignored-directive]
!DIR$ INLINEALWAYS wrong_func
end function