Debian Codegraph @

flang/test/Transforms/debug-line-table-inc-same-file.fir

raw
1
2 // RUN: fir-opt --add-debug-info --mlir-print-debuginfo %s | FileCheck %s
3 // REQUIRES: system-linux
4
5 // Test that there is only one FileAttribute generated for multiple functions
6 // in the same file.
7 module {
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)
22
23 // CHECK-COUNT-1: #llvm.di_file