annotate gcc/testsuite/gfortran.dg/nesting_1.f90 @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children 84e7813d76e9
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 ! PR 18525
kono
parents:
diff changeset
2 ! we used to incorrectly refer to n from a when resolving the call to
kono
parents:
diff changeset
3 ! c from b
kono
parents:
diff changeset
4 ! { dg-do run }
kono
parents:
diff changeset
5 subroutine a(n)
kono
parents:
diff changeset
6 call b(n+1)
kono
parents:
diff changeset
7 contains
kono
parents:
diff changeset
8 subroutine b(n)
kono
parents:
diff changeset
9 call c(n)
kono
parents:
diff changeset
10 end subroutine b
kono
parents:
diff changeset
11
kono
parents:
diff changeset
12 subroutine c(m)
kono
parents:
diff changeset
13 if (m/=1) call abort
kono
parents:
diff changeset
14 end subroutine c
kono
parents:
diff changeset
15 end subroutine a
kono
parents:
diff changeset
16
kono
parents:
diff changeset
17 call a(0)
kono
parents:
diff changeset
18 end