2 ! Tests the fix for PR29422, in which function results
3 ! were not tested for suitability in IO statements.
5 ! Contributed by Dominique d'Humieres <dominiq@lps.ens.fr>
9 Integer, allocatable
:: arr(:)
12 print *, fun1 () ! { dg-error "cannot have ALLOCATABLE" }