1 ! RUN: %flang_fc1 -fdebug-unparse %s 2>&1 | FileCheck %s
2 ! Tests rules of 15.5.5.2 for generics and explicit intrinsics
3 ! competing at various scoping levels.
8 module procedure
:: abs_int_redef
, abs_noargs
11 integer function abs_int_redef(j
)
12 integer, intent(in
) :: j
15 integer function abs_noargs()
24 module procedure abs_real_redef
27 real function abs_real_redef(x
)
39 !CHECK: abs_int_redef(
41 !CHECK: abs_real_redef(
43 !CHECK: 1.41421353816986083984375_4
49 intrinsic abs
! override some of module's use of m1
54 !CHECK: abs_real_redef(
56 !CHECK: 1.41421353816986083984375_4
64 module procedure abs_complex_redef
! extend module's use of m1
66 !CHECK: abs_int_redef(
70 !CHECK: abs_complex_redef(
75 intrinsic abs
! override the extension
76 !CHECK: 1.41421353816986083984375_4
80 real function abs_complex_redef(z
)
81 complex, intent(in
) :: z
88 integer function abs(n
) ! override module's use of m1
89 integer, intent(in
) :: n
97 integer function abs(n
)
98 integer, intent(in
) :: n
103 module procedure abs
! same name, host-associated