This help us generate debug info that better represents the actual Fortran source code. It was briefly discussed [here](https://github.com/llvm/llvm-project/pull/113917#pullrequestreview-2401339038). Fixes #108711.
11 lines
261 B
Fortran
11 lines
261 B
Fortran
! RUN: %flang_fc1 -emit-llvm -debug-info-kind=standalone %s -o - | FileCheck %s
|
|
|
|
! Test that correct linkage name is generated in the debug info.
|
|
subroutine sub(a)
|
|
integer :: a
|
|
return a+1
|
|
end
|
|
|
|
!CHECK: !DISubprogram(name: "sub", linkageName: "sub_"{{.*}})
|
|
|