3 ! PR 44044: [OOP] SELECT TYPE with class-valued function
6 ! Note: All three error messages are being checked for double occurrence,
7 ! using the trick from PR 30612.
9 ! Contributed by Janus Weil <janus@gcc.gnu.org>
23 function fun() ! { dg-bogus "must be dummy, allocatable or pointer.*must be dummy, allocatable or pointer" }
27 function fun2() ! { dg-bogus "cannot have a deferred shape.*cannot have a deferred shape" }
28 integer,dimension(:) :: fun2
31 function fun3() result(res) ! { dg-bogus "is not extensible.*is not extensible" }
32 class(s),pointer :: res
38 ! { dg-error "must be dummy, allocatable or pointer" "" { target *-*-* } 23 }
39 ! { dg-error "cannot have a deferred shape" "" { target *-*-* } 27 }
40 ! { dg-error "is not extensible" "" { target *-*-* } 31 }