[AArch64] PR target/65491: Classify V1TF vectors as AAPCS64 short vectors rather...
[official-gcc.git] / gcc / testsuite / gfortran.dg / pointer_init_4.f90
blob2ca173468d8e35908ebb5fd10d16462135ba1681
1 ! { dg-do run }
3 ! PR 45290: [F08] pointer initialization
5 ! Contributed by Janus Weil <janus@gcc.gnu.org>
7 module m
9 implicit none
11 contains
13 integer function f1()
14 f1 = 42
15 end function
17 integer function f2()
18 f2 = 43
19 end function
21 end module
24 program test_ptr_init
26 use m
27 implicit none
29 procedure(f1), pointer :: pp => f1
31 type :: t
32 procedure(f2), pointer, nopass :: ppc => f2
33 end type
35 type (t) :: u
37 if (pp()/=42) call abort()
38 if (u%ppc()/=43) call abort()
40 end