20 lines · plain
1! Tests -fget-symbols-sources with BLOCK that contains same variable name as 2! another in an outer scope.3program main4 integer :: x5 integer :: y6 block7 integer :: x8 integer :: y9 x = y10 end block11 x = y12end program13 14!! Inner x15! RUN: %flang_fc1 -fget-definition 9 5 6 %s | FileCheck --check-prefix=CHECK1 %s16! CHECK1: x:{{.*}}getdefinition05.f90, 7, 16-1717!! Outer y18! RUN: %flang_fc1 -fget-definition 11 7 8 %s | FileCheck --check-prefix=CHECK2 %s19! CHECK2: y:{{.*}}getdefinition05.f90, 5, 14-1520