2019-09-06 01:05:45 +08:00
|
|
|
! Tests -fget-symbols-sources with BLOCK that contains same variable name as
|
|
|
|
! another in an outer scope.
|
|
|
|
program main
|
|
|
|
integer :: x
|
|
|
|
integer :: y
|
|
|
|
block
|
|
|
|
integer :: x
|
|
|
|
integer :: y
|
|
|
|
x = y
|
|
|
|
end block
|
|
|
|
x = y
|
|
|
|
end program
|
|
|
|
|
|
|
|
!! Inner x
|
2021-02-03 02:51:14 +08:00
|
|
|
! RUN: %f18 -fget-definition 9 5 6 -fsyntax-only %s | FileCheck --check-prefix=CHECK1 %s
|
2020-06-27 01:47:13 +08:00
|
|
|
! CHECK1: x:{{.*}}getdefinition05.f90, 7, 16-17
|
2019-09-06 01:05:45 +08:00
|
|
|
!! Outer y
|
2021-02-03 02:51:14 +08:00
|
|
|
! RUN: %f18 -fget-definition 11 7 8 -fsyntax-only %s | FileCheck --check-prefix=CHECK2 %s
|
2020-06-27 01:47:13 +08:00
|
|
|
! CHECK2: y:{{.*}}getdefinition05.f90, 5, 14-15
|