2017-02-20 Paul Thomas <pault@gcc.gnu.org>
[official-gcc.git] / gcc / testsuite / gfortran.dg / function_charlen_1.f90
blob40f602f25fc6998ba24a61d8c5931c6bfd2b9935
1 ! { dg-do compile }
2 ! Tests the fix for PR34429 in which function charlens that were
3 ! USE associated would cause an error.
5 ! Contributed by Tobias Burnus <burnus@gcc.gnu.org>
7 module m
8 integer, parameter :: strlen = 5
9 end module m
11 character(strlen) function test()
12 use m
13 test = 'A'
14 end function test
16 interface
17 character(strlen) function test()
18 use m
19 end function test
20 end interface
21 print *, test()
22 end