[flang-commits] [flang] [flang] Route elemental CHARACTER MIN/MAX OPTIONAL cases through custom lowering (PR #191244)
Eugene Epshteyn via flang-commits
flang-commits at lists.llvm.org
Tue Apr 14 06:13:00 PDT 2026
================
@@ -0,0 +1,11 @@
+! Test that elemental character MIN/MAX with dynamically optional arguments
+! correctly hits the TODO (not yet implemented) diagnostic.
+! RUN: %not_todo_cmd bbc -emit-hlfir -o - %s 2>&1 | FileCheck %s
+! RUN: %not_todo_cmd %flang_fc1 -emit-hlfir -o - %s 2>&1 | FileCheck %s
+
+! CHECK: not yet implemented: CHARACTER MIN and MAX with dynamically optional arguments
----------------
eugeneepshteyn wrote:
Is assumed length char also supposed to hit TODO? If so, could you please add this test as well:
```
subroutine test_elemental_char_min_assumed_optional(a, b, c, res)
character(*), intent(in) :: a(:), b(:)
character(*), intent(in), optional :: c(:)
character(*), intent(out) :: res(:)
res = min(a, b, c)
end subroutine
```
https://github.com/llvm/llvm-project/pull/191244
More information about the flang-commits
mailing list