[flang-commits] [flang] [llvm] [flang] Guard absent optional operands in elemental character MIN/MAX (PR #191244)
via flang-commits
flang-commits at lists.llvm.org
Fri Apr 10 08:46:17 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
----------------
jeanPerier wrote:
There should not be executable tests in lit tests for features, these should be added to the llvm-test-suite https://github.com/llvm/llvm-test-suite.
https://github.com/llvm/llvm-project/pull/191244
More information about the flang-commits
mailing list