3 ! PR 47023: C_Sizeof: Rejects valid code
5 ! Contributed by Janus Weil <janus@gcc.gnu.org>
8 procedure(real) :: proc
9 procedure(real), pointer :: pp
12 print *,sizeof(proc
) ! { dg-error "shall not be a procedure" }
13 print *,sizeof(pp
) ! { dg-error "shall not be a procedure" }
14 print *,sizeof(pp(0.))
15 print *,sizeof(sub
) ! { dg-error "shall not be a procedure" }
16 print *,sizeof(func
) ! { dg-error "shall not be a procedure" }
17 print *,sizeof(func())