// RUN: fir-opt --add-debug-foundation --mlir-print-debuginfo %s | FileCheck %s // REQUIRES: system-linux // Test that there are no changes to a function with existed fused loc debug module attributes {} { func.func @_QPs1() { return loc(#loc1) } loc(#loc2) } loc(#loc) #di_basic_type = #llvm.di_basic_type #di_file = #llvm.di_file<"simple.f90" in "/home/user01/llvm-project/build_release"> #loc = loc("/home/user01/llvm-project/build_release/simple.f90":0:0) #loc1 = loc("/home/user01/llvm-project/build_release/simple.f90":1:1) #di_compile_unit = #llvm.di_compile_unit, sourceLanguage = DW_LANG_Fortran95, file = #di_file, producer = "Flang", isOptimized = false, emissionKind = LineTablesOnly> #di_subroutine_type = #llvm.di_subroutine_type #di_subprogram = #llvm.di_subprogram #loc2 = loc(fused<#di_subprogram>[#loc1]) // CHECK: #loc = loc("/home/user01/llvm-project/build_release/simple.f90":0:0) // CHECK: #loc1 = loc("/home/user01/llvm-project/build_release/simple.f90":1:1) // CHECK: #di_subprogram = #llvm.di_subprogram // CHECK: #loc2 = loc(fused<#di_subprogram>[#loc1])