2 ! { dg-options "-std=legacy" }
4 ! Tests the fix for pr32613 - see:
5 ! http://groups.google.com/group/comp.lang.fortran/browse_thread/thread/495c154ee188d7f1/ea292134fe68b1d0#ea292134fe68b1d0
7 ! Contributed by Al Greynolds <awgreynolds@earthlink.net>
14 ! integer i !correct results from gfortran depend on this statement (before fix)
16 character lit*1, line*100
21 if (internal (1)) call abort ()
22 if (m .ne. 4) call abort ()
24 logical function internal (j)
27 k = index ('RE', lit (i))