mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-17 03:56:42 +00:00

Add two new semantics tests for `critical-construct` that test addition standard conforming and non stardard conforming statements Reviewed By: ktras Differential Revision: https://reviews.llvm.org/D157521
13 lines
343 B
Fortran
13 lines
343 B
Fortran
! RUN: %python %S/test_errors.py %s %flang_fc1
|
|
program testcriticalconstruct
|
|
|
|
Start_name_only: Critical
|
|
!ERROR: CRITICAL construct name required but missing
|
|
End critical !C1117 in the Fortran 2018 standard
|
|
|
|
critical
|
|
!ERROR: CRITICAL construct name unexpected
|
|
end critical end_name_only !C1117 in Fortran 2018 standard
|
|
|
|
end program
|