// RUN: fir-opt --add-debug-info --mlir-print-debuginfo %s | FileCheck %s module attributes {dlti.dl_spec = #dlti.dl_spec<>} { func.func private @_QFPff() { %c1 = arith.constant 1 : index %c0 = arith.constant 0 : index %0 = fir.undefined !fir.dscope %1 = fir.alloca !fir.box>> {bindc_name = "ar2", uniq_name = "_QFFffEar2"} %4 = fircg.ext_declare %1 {uniq_name = "_QFFffEar2"} : (!fir.ref>>>) -> !fir.ref>>> loc(#loc1) %15 = fir.alloca !fir.box> {bindc_name = "sc", uniq_name = "_QFFffEsc"} %18 = fircg.ext_declare %15 {uniq_name = "_QFFffEsc"} : (!fir.ref>>) -> !fir.ref>> loc(#loc2) return } loc(#loc3) } #loc1 = loc("test.f90":3:3) #loc2 = loc("test.f90":4:3) #loc3 = loc("test.f90":1:3) // CHECK-DAG: #[[TY1:.*]] = #llvm.di_basic_type // CHECK-DAG: #[[TY2:.*]] = #llvm.di_composite_type> // CHECK-DAG: #[[TY3:.*]] = #llvm.di_derived_type // CHECK-DAG: #llvm.di_local_variable<{{.*}}name = "ar2"{{.*}}type = #[[TY2]]> // CHECK-DAG: #llvm.di_local_variable<{{.*}}name = "sc"{{.*}}type = #[[TY3]]>