]>
Commit | Line | Data |
---|---|---|
4a94e368 | 1 | ! Copyright 2020-2022 Free Software Foundation, Inc. |
a5c641b5 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 | ! | |
17 | ! Start of test program. | |
18 | ! | |
19 | program test | |
20 | ||
21 | ! Declare variables used in this test. | |
22 | integer, dimension (1:10,1:10) :: array | |
23 | integer, allocatable :: other (:, :) | |
24 | integer, dimension(:,:), pointer :: pointer2d => null() | |
25 | integer, dimension(1:10,1:10), target :: tarray | |
26 | ||
27 | print *, "" ! First Breakpoint. | |
28 | ||
29 | ! Allocate or associate any variables as needed. | |
30 | allocate (other (1:10, 1:10)) | |
31 | pointer2d => tarray | |
32 | array = 0 | |
33 | ||
34 | print *, "" ! Second Breakpoint. | |
35 | ||
36 | ! All done. Deallocate. | |
37 | deallocate (other) | |
38 | ||
39 | ! GDB catches this final breakpoint to indicate the end of the test. | |
40 | print *, "" ! Final Breakpoint. | |
41 | ||
42 | end program test |