3 ! This tests the fix for PR36361: If a function was declared in an INTERFACE
4 ! statement, no attributes may be declared outside of the INTERFACE body.
6 ! Contributed by Janus Weil <janus@gcc.gnu.org>
13 dimension :: f1(4) ! { dg-error "outside its INTERFACE body" }
20 real function f2() ! { dg-error "outside its INTERFACE body" }
38 function f4() ! { dg-error "cannot have a deferred shape" }
42 allocatable
:: f4
! { dg-error "outside of INTERFACE body" }
49 function f5() ! { dg-error "outside its INTERFACE body" }