]>
Commit | Line | Data |
---|---|---|
213516ef | 1 | ! Copyright 2022-2023 Free Software Foundation, Inc. |
1c01b236 AB |
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 fixed_size_string_v1(s) | |
17 | character*3 s | |
18 | print *, "" ! First breakpoint. | |
19 | end subroutine fixed_size_string_v1 | |
20 | ||
21 | subroutine fixed_size_string_v2(s) | |
22 | character(3) s | |
23 | print *, "" ! Second breakpoint. | |
24 | end subroutine fixed_size_string_v2 | |
25 | ||
26 | subroutine variable_size_string(s) | |
27 | character*(*) s | |
28 | print *, "" ! Third breakpoint. | |
29 | end subroutine variable_size_string | |
30 | ||
31 | program test | |
32 | call fixed_size_string_v1('foo') | |
33 | call fixed_size_string_v2('foo') | |
34 | call variable_size_string('foo') | |
35 | call variable_size_string('foo' // achar(10) // achar(9) // achar(13) // & | |
36 | achar(0) // 'bar') | |
37 | end program test |