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.
15 lines
364 B
Fortran
15 lines
364 B
Fortran
! RUN: %python %S/test_symbols.py %s %flang_fc1
|
|
!DEF: /MAIN MainProgram
|
|
program MAIN
|
|
!DEF: /MAIN/x POINTER ObjectEntity REAL(4)
|
|
pointer :: x
|
|
!REF: /MAIN/x
|
|
real x
|
|
!DEF: /MAIN/y EXTERNAL, POINTER (Function) ProcEntity REAL(4)
|
|
pointer :: y
|
|
!REF: /MAIN/y
|
|
procedure (real) :: y
|
|
!DEF: /MAIN/z (Implicit) ObjectEntity REAL(4)
|
|
!REF: /MAIN/y
|
|
z = y()
|
|
end program
|