mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-24 12:56:06 +00:00

A procedure pointer is allowed to be initialized with the subprogram in which it is local, assuming that other requirements are satisfied. Add a good test for local procedure pointer initialization, as no test existed for the error message in question. Fixes https://github.com/llvm/llvm-project/issues/116566.