annotate gcc/testsuite/gfortran.dg/debug_1.f90 @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900 (2018-10-24)
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 subroutine gfc_debug_bug (n,m,k,ax,bx,c)
kono
parents:
diff changeset
2 ! above line must be the first line
kono
parents:
diff changeset
3 ! { dg-do compile }
kono
parents:
diff changeset
4 ! { dg-options "-g" }
kono
parents:
diff changeset
5 ! PR 19195
kono
parents:
diff changeset
6 ! we set line numbers wrongly, which made the compiler choke when emitting
kono
parents:
diff changeset
7 ! debug information.
kono
parents:
diff changeset
8 implicit none
kono
parents:
diff changeset
9 integer :: n, m
kono
parents:
diff changeset
10 integer :: k(n+m)
kono
parents:
diff changeset
11 real :: ax(:), bx(n), c(n+m)
kono
parents:
diff changeset
12
kono
parents:
diff changeset
13 integer :: i
kono
parents:
diff changeset
14 real :: f
kono
parents:
diff changeset
15
kono
parents:
diff changeset
16 i = k(n)
kono
parents:
diff changeset
17 f = c(n)
kono
parents:
diff changeset
18 f = bx(n)
kono
parents:
diff changeset
19 f = ax(n)
kono
parents:
diff changeset
20 end subroutine gfc_debug_bug