1 ! Tests
-fget
-definition with fixed form
.
5 pure
subroutine s
(x
, yyy
) bind
(c
)
13 recursive pure
function f
() result
(x
)
14 real, allocatable
:: x
19 ! RUN and CHECK lines here as test is sensitive
to line numbers
20 ! RUN
: %flang_fc1
-fget
-definition
7 9 10 %s
2>&1 | FileCheck
--check
-prefix
=CHECK1
%s
21 ! RUN
: %flang_fc1
-fget
-definition
8 26 29 %s
2>&1 | FileCheck
--check
-prefix
=CHECK2
%s
22 ! RUN
: %flang_fc1
-fget
-definition
15 9 10 %s
2>&1 | FileCheck
--check
-prefix
=CHECK3
%s
23 ! CHECK1
: x
:{{.*}}getdefinition02
.f
, 5, 27-28
24 ! CHECK2
: yyy
:{{.*}}getdefinition02
.f
, 5, 30-33
25 ! CHECK3
: x
:{{.*}}getdefinition02
.f
, 14, 30-31