llvm-project/flang/test/Semantics/getdefinition04.f90

11 lines
263 B
Fortran

! Tests -fget-definition with COMMON block with same name as variable.
program main
integer :: x
integer :: y
common /x/ y
x = y
end program
! RUN: %f18 -fget-definition 6 3 4 -fparse-only %s | FileCheck %s
! CHECK: x:{{.*}}getdefinition04.f90, 3, 14-15