xref: /llvm-project/flang/test/Transforms/debug-index-type.fir (revision 8239ea3918828ab9c5ea8be1f4100d464f0bf3c0)
1// RUN: fir-opt --add-debug-info --mlir-print-debuginfo %s | FileCheck %s
2
3module attributes {dlti.dl_spec = #dlti.dl_spec<>} {
4  func.func private @str(%arg0: index) -> i32 loc(#loc1)
5}
6#loc1 = loc("test.f90":5:1)
7
8// CHECK: #[[INT32_TY:.*]] = #llvm.di_basic_type<tag = DW_TAG_base_type, name = "integer", sizeInBits = 32, encoding = DW_ATE_signed>
9// CHECK: #[[INT64_TY:.*]] = #llvm.di_basic_type<tag = DW_TAG_base_type, name = "integer", sizeInBits = 64, encoding = DW_ATE_signed>
10// CHECK: #llvm.di_subroutine_type<{{.*}}types = #[[INT32_TY]], #[[INT64_TY]]>
11