Rename gdb/ChangeLog to gdb/ChangeLog-2021
[binutils-gdb.git] / gdb / testsuite / gdb.fortran / array-slices-bad.f90
blob31b0879c51a6eccad3a8763bf689fd34db0ee65c
1 ! Copyright 2020-2021 Free Software Foundation, Inc.
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.
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.
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/>.
17 ! Start of test program.
19 program test
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
27 print *, "" ! First Breakpoint.
29 ! Allocate or associate any variables as needed.
30 allocate (other (1:10, 1:10))
31 pointer2d => tarray
32 array = 0
34 print *, "" ! Second Breakpoint.
36 ! All done. Deallocate.
37 deallocate (other)
39 ! GDB catches this final breakpoint to indicate the end of the test.
40 print *, "" ! Final Breakpoint.
42 end program test