hppa64: Fix fmt_f_default_field_width_3.f90 and fmt_g_default_field_width_3.f90
[official-gcc.git] / gcc / testsuite / gfortran.dg / proc_ptr_comp_22.f90
blobac3982e5883dac7f1bc3f9acbd2d1ed638cf8423
1 ! { dg-do compile }
3 ! PR 41978: [F03] ICE in gfc_conv_expr_descriptor for array PPC assignment
5 ! Contributed by Daniel Kraft <domob@gcc.gnu.org>
7 MODULE m
8 IMPLICIT NONE
10 TYPE t
11 PROCEDURE(myproc), POINTER, PASS :: myproc
12 END TYPE t
14 CONTAINS
16 INTEGER FUNCTION myproc (me)
17 CLASS(t), INTENT(IN) :: me
18 myproc = 42
19 END FUNCTION myproc
21 END MODULE m
23 PROGRAM main
24 USE m
25 IMPLICIT NONE
27 TYPE(t) :: arr(2)
28 arr%myproc => myproc ! { dg-error "must not have the POINTER attribute" }
29 END PROGRAM main