flang-compiler / f18-llvm-project

Fork of llvm/llvm-project for f18. In sync with f18-mlir and f18.
http://llvm.org
28 stars 16 forks source link

[flang] enable fir.is_present and fir.absent with function types #1568

Closed jeanPerier closed 2 years ago

jeanPerier commented 2 years ago

Fortran dummy procedures and procedure pointer can be OPTIONAL, and there is no technical reason to prevent fir.is_present and fir.absent from accepting function types. Allow these types and add tests.