mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-17 22:26:39 +00:00

In a standalone build, there is no guarantee that flang code would be saved in a directory named flang. Check only the path under flang's root directory. Reviewed By: #flang, kiranchandramohan Differential Revision: https://reviews.llvm.org/D157642
15 lines
391 B
Fortran
15 lines
391 B
Fortran
! Test that the module has the location information
|
|
|
|
! RUN: %flang_fc1 -mmlir --mlir-print-debuginfo -emit-fir -o - %s | FileCheck %s
|
|
|
|
! REQUIRES: system-linux
|
|
|
|
subroutine sb1()
|
|
end subroutine
|
|
|
|
! CHECK: module attributes
|
|
! CHECK: func.func @_QPsb1() {
|
|
! CHECK: }
|
|
! CHECK: } loc(#[[MODULE_LOC:.*]])
|
|
! CHECK: #[[MODULE_LOC]] = loc("/{{.*}}/test/Lower/module-debug-file-loc-linux.f90":0:0)
|