[flang-commits] [flang] [flang] Add support for the IARGC and GETARG legacy intrinsics (PR #196425)
via flang-commits
flang-commits at lists.llvm.org
Sat Jun 6 04:14:47 PDT 2026
================
@@ -1665,6 +1666,12 @@ static const IntrinsicInterface intrinsicSubroutine[]{
{"errmsg", DefaultChar, Rank::scalar, Optionality::optional,
common::Intent::InOut}},
{}, Rank::elemental, IntrinsicClass::impureSubroutine},
+ {"getarg",
+ {{"pos", DefaultInt, Rank::scalar, Optionality::required,
----------------
Tuhil926 wrote:
Done! I added another subroutine to the semantics test which just calls `getarg` with and `integer(2)` and `integer(8)`. I also wanted to make sure that this test failed if `pos` had not been changed to `AnyInt`, and it does.
https://github.com/llvm/llvm-project/pull/196425
More information about the flang-commits
mailing list