1 ! Copyright 2024 Free Software Foundation, Inc. 2 ! 3 ! This program is free software; you can redistribute it and/or modify 4 ! it under the terms of the GNU General Public License as published by 5 ! the Free Software Foundation; either version 3 of the License, or 6 ! (at your option) any later version. 7 ! 8 ! This program is distributed in the hope that it will be useful, 9 ! but WITHOUT ANY WARRANTY; without even the implied warranty of 10 ! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 ! GNU General Public License for more details. 12 ! 13 ! You should have received a copy of the GNU General Public License 14 ! along with this program. If not, see <http://www.gnu.org/licenses/>. 15 16 subroutine vla_array_func (arr_vla1, arr_vla2, arr2) 17 character (len=*):: arr_vla1 (:) 18 character (len=*):: arr_vla2 19 character (len=9):: arr2 (:) 20 21 print *, arr_vla1 ! arr_vla1-print 22 print *, arr_vla2 23 print *, arr2 24 print *, rank(arr_vla1) 25 end subroutine vla_array_func 26 27 program vla_array_main 28 interface 29 subroutine vla_array_func (arr_vla1, arr_vla2, arr2) 30 character (len=*):: arr_vla1 (:) 31 character (len=*):: arr_vla2 32 character (len=9):: arr2 (:) 33 end subroutine vla_array_func 34 end interface 35 character (len=9) :: arr1 (3) 36 character (len=6) :: arr2 37 character (len=12) :: arr3 (5) 38 39 arr1 = 'vlaaryvla' 40 arr2 = 'vlaary' 41 arr3 = 'vlaaryvlaary' 42 43 call vla_array_func (arr3, arr2, arr1) 44 45 end program vla_array_main 46