26 lines · plain
1! Tests -fget-definition with fixed form.2 module m23 private :: f4 contains5 pure subroutine s (x, yyy) bind(c)6 intent(in) :: 7 * x8 intent(inout) :: yyy9 contains10 pure subroutine ss11 end subroutine12 end subroutine13 recursive pure function f() result(x)14 real, allocatable :: x15 x = 1.016 end function17 end module18 19! RUN and CHECK lines here as test is sensitive to line numbers20! RUN: %flang_fc1 -fget-definition 7 9 10 %s 2>&1 | FileCheck --check-prefix=CHECK1 %s21! RUN: %flang_fc1 -fget-definition 8 26 29 %s 2>&1 | FileCheck --check-prefix=CHECK2 %s22! RUN: %flang_fc1 -fget-definition 15 9 10 %s 2>&1 | FileCheck --check-prefix=CHECK3 %s23! CHECK1: x:{{.*}}getdefinition02.f, 5, 27-2824! CHECK2: yyy:{{.*}}getdefinition02.f, 5, 30-3325! CHECK3: x:{{.*}}getdefinition02.f, 14, 30-3126