[flang-commits] [flang] [flang] Guard absent optional operands in elemental character MIN/MAX (PR #191244)

Sairudra More via flang-commits flang-commits at lists.llvm.org
Fri Apr 10 22:28:25 PDT 2026


================
@@ -0,0 +1,47 @@
+! Test elemental character MIN/MAX with optional absent argument executes
+! correctly — previously crashed at runtime when the optional was absent.
+! UNSUPPORTED: offload-cuda
+
+! RUN: %flang %isysroot -L"%libdir" %s -o %t
+! RUN: env LD_LIBRARY_PATH="$LD_LIBRARY_PATH:%libdir" %t | FileCheck %s
----------------
Saieiei wrote:

Thanks,  addressed in the https://github.com/llvm/llvm-project/commit/b23993eb475f81e6c315364b8972bce41218007e update. I removed the executable lit test from this PR.


https://github.com/llvm/llvm-project/pull/191244


More information about the flang-commits mailing list