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

via flang-commits flang-commits at lists.llvm.org
Fri Mar 20 09:39:52 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)
----------------
laoshd wrote:

Test cases for different character kinds have been added.

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


More information about the flang-commits mailing list