c207e36025
As Fortran 2018 5.2.2 states, a program shall consist of exactly one main program. Add this semantic check. Reviewed By: klausler Differential Revision: https://reviews.llvm.org/D125186
7 lines
152 B
Fortran
7 lines
152 B
Fortran
! RUN: %python %S/test_errors.py %s %flang_fc1
|
|
! Test the restriction in 5.2.2
|
|
|
|
end
|
|
!ERROR: A source file cannot contain more than one main program
|
|
end
|