flang/test/Lower/module-debug-file-loc.f90
raw| 1 | ! Test that the module has the location information |
| 2 | |
| 3 | ! RUN: %flang_fc1 -mmlir --mlir-print-debuginfo -emit-fir -o - %s | FileCheck %s |
| 4 | |
| 5 | subroutine sb1() |
| 6 | end subroutine |
| 7 | |
| 8 | ! CHECK: module attributes |
| 9 | ! CHECK: func.func @_QPsb1() { |
| 10 | ! CHECK: } |
| 11 | ! CHECK: } loc(#[[MODULE_LOC:.*]]) |
| 12 | ! CHECK: #[[MODULE_LOC]] = loc("{{.*}}module-debug-file-loc.f90":0:0) |