File: associate_block_2.f90

package info (click to toggle)
fortran-language-server 3.2.2%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,268 kB
  • sloc: python: 9,688; f90: 1,195; fortran: 30; makefile: 28; ansic: 20
file content (10 lines) | stat: -rw-r--r-- 189 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
program associate_block_2
  implicit none
  associate (hi => say_hi())
    if (hi) print *, 'Bye'
  end associate
contains
  logical function say_hi()
    say_hi = .true.
  end
end program