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

13 lines
328 B
Fortran

! Tests -fget-symbols-sources with COMMON.
program main
integer :: x
integer :: y
common /x/ y
x = y
end program
! RUN: %flang_fc1 -fsyntax-only -fget-symbols-sources %s 2>&1 | FileCheck %s
! CHECK:x:{{.*}}getsymbols04.f90, 3, 14-15
! CHECK:x:{{.*}}getsymbols04.f90, 5, 11-12
! CHECK:y:{{.*}}getsymbols04.f90, 4, 14-15