3 ! The problem was that the intrinsic operators
4 ! were written to the module file as '/=' etc.
5 ! but this format was not understood on reading.
7 ! Test case by Toby White, stripped down by
8 ! Dominique d'Humieres and Francois-Xavier Coudert
12 function pop(n) result(item)
14 character(len=merge(1, 0, n > 0)) :: item
16 function push(n) result(item)
18 character(len=merge(1, 0, n /= 0)) :: item
24 if(len(pop(0)) /= 0) call abort()
25 if(len(pop(1)) /= 1) call abort()
26 if(len(push(0)) /= 0) call abort()
27 if(len(push(1)) /= 1) call abort()
29 ! { dg-final { cleanup-modules "foo" } }