[flang-commits] [flang] [llvm] [flang] Implement SPLIT intrinsic subroutine with tests (PR #185584)

Eugene Epshteyn via flang-commits flang-commits at lists.llvm.org
Fri Mar 20 07:25:45 PDT 2026


================
@@ -0,0 +1,69 @@
+! RUN: %python %S/test_errors.py %s %flang_fc1
+! Check for semantic errors in split() subroutine calls
+! Based on Fortran 2023 standard requirements
+
+program test_split_errors
+  implicit none
+
+  character(20) :: string
+  character(5) :: set
+  integer :: pos
+  logical :: back
+
+  ! Valid declarations for testing
+  integer :: int_scalar
+  real :: real_scalar
+  character(10) :: string_array(5)
----------------
eugeneepshteyn wrote:

SPLIT supports different character kinds, right? Let's maybe add some tests with different character kinds. (If they are not supported with SPLIT, then let's check for errors.)

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


More information about the flang-commits mailing list