6 ! Check that get_key_len is not optimized away as it
7 ! is used in a publicly visible specification expression.
21 pure
function myotherlen()
24 end function myotherlen
26 character(len
=mylen()) :: x
27 character :: z2(myotherlen())
30 character(len
=myotherlen()) :: z
34 x(6:10) = intern_func()
36 function intern_func()
37 character(len
=myotherlen()) :: intern_func
39 end function intern_func
40 subroutine internal(y
)
41 character(len
=myotherlen()) :: y
43 end subroutine internal
47 ! { dg-final { scan-assembler-not "__m_MOD_myotherlen" } }
48 ! { dg-final { scan-assembler "__m_MOD_bar" } }
49 ! { dg-final { scan-assembler "__m_MOD_mylen" } }