2 ! { dg-options "-Wreturn-type" }
4 ! The problem was that the intrinsic operators
5 ! were written to the module file as '/=' etc.
6 ! but this format was not understood on reading.
8 ! Test case by Toby White, stripped down by
9 ! Dominique d'Humieres and Francois-Xavier Coudert
13 function pop(n
) result(item
) ! { dg-warning "not set" }
15 character(len
=merge(1, 0, n
> 0)) :: item
17 function push(n
) result(item
) ! { dg-warning "not set" }
19 character(len
=merge(1, 0, n
/= 0)) :: item
25 if(len(pop(0)) /= 0) call abort()
26 if(len(pop(1)) /= 1) call abort()
27 if(len(push(0)) /= 0) call abort()
28 if(len(push(1)) /= 1) call abort()