The following code is now accepted: ``` module m end program m use m end ``` The PROGRAM name doesn't really have an effect on the compilation result, so it shouldn't result in symbol name conflicts. This change makes the main program symbol name all uppercase in the cooked character stream. This makes it distinct from all other symbol names that are all lowercase in cooked character stream. Modified the tests that were checking for lower case main program name.
14 lines
333 B
Fortran
14 lines
333 B
Fortran
! RUN: bbc %s --pft-test | FileCheck %s
|
|
! RUN: bbc %s -o "-" -emit-fir | FileCheck %s --check-prefix=FIR
|
|
|
|
program basic
|
|
end program
|
|
|
|
! CHECK: 1 Program BASIC
|
|
! CHECK: 1 EndProgramStmt: end program
|
|
! CHECK: End Program BASIC
|
|
|
|
! FIR-LABEL: func @_QQmain() attributes {fir.bindc_name = "BASIC"} {
|
|
! FIR: return
|
|
! FIR: }
|