bolt/deps/llvm-18.1.8/flang/test/Semantics/assign14.f90
2025-02-14 19:21:04 +01:00

7 lines
288 B
Fortran

! RUN: %python %S/test_errors.py %s %flang_fc1
! Can't associate a pointer with a substring of a character literal
program main
character(:), pointer :: cp
!ERROR: Target associated with pointer 'cp' must be a designator or a call to a pointer-valued function
cp => "abcd"(1:4)
end