4 ! Check that using a non-recursive procedure as "value" is an error.
13 PROCEDURE(test), POINTER :: procptr
15 CALL bar (test) ! { dg-warning "Non-RECURSIVE" }
16 procptr => test ! { dg-warning "Non-RECURSIVE" }
19 INTEGER FUNCTION test2 () RESULT (x)
21 PROCEDURE(test2), POINTER :: procptr
23 CALL bar (test2) ! { dg-warning "Non-RECURSIVE" }
24 procptr => test2 ! { dg-warning "Non-RECURSIVE" }
29 INTEGER FUNCTION func ()
30 ! Using a result variable is ok of course!
31 func = 42 ! { dg-bogus "Non-RECURSIVE" }