[llvm-gsymutil] Disable test macho-gsym-merged-callsites-dsym (#119957)
[llvm-project.git] / flang / test / Transforms / debug-line-table-inc-same-file.fir
blobbcaf4497982310aee58d3846701f50cb5548a7db
2 // RUN: fir-opt --add-debug-info --mlir-print-debuginfo %s | FileCheck %s
3 // REQUIRES: system-linux
5 // Test that there is only one FileAttribute generated for multiple functions
6 // in the same file.
7 module attributes {dlti.dl_spec = #dlti.dl_spec<>} {
8   func.func @_QPs1() {
9     return loc(#loc2)
10   } loc(#loc1)
11   func.func @_QPs2() {
12     return loc(#loc2)
13   } loc(#loc1)
14   func.func @_QQmain() {
15     return loc(#loc3)
16   } loc(#loc1)
17 } loc(#loc)
18 #loc = loc("/home/user01/llvm-project/build_release/simple.f90":0:0)
19 #loc1 = loc("/home/user01/llvm-project/build_release/simple.f90":1:1)
20 #loc2 = loc("/home/user01/llvm-project/build_release/simple.f90":2:1)
21 #loc3 = loc("/home/user01/llvm-project/build_release/simple.f90":3:1)
23 // CHECK-COUNT-1: #llvm.di_file