📄 contained2.f90
字号:
! Program to check resolution of symbols with the same nameprogram contained2 implicit none integer var1 var1 = 42 if (f1() .ne. 1) call abort call f2() if (var1 .ne. 42) call abortcontainsfunction f1 () implicit none integer f1 integer var1 integer f2 var1 = 1 f2 = var1 f1 = f2end functionsubroutine f2() implicit none if (f1() .ne. 1) call abortend subroutineend program
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -