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_4.f90
blob60b9e73af8283eb4abc0d0bd24669417612783a0
1 ! { dg-do compile }
3 ! PROCEDURE POINTERS & pointer-valued functions
5 ! Contributed by Janus Weil <janus@gcc.gnu.org>
7 interface
8 integer function f1()
9 end function
10 end interface
12 interface
13 function f2()
14 integer, pointer :: f2
15 end function
16 end interface
18 interface
19 function pp1()
20 integer :: pp1
21 end function
22 end interface
23 pointer :: pp1
25 pointer :: pp2
26 interface
27 function pp2()
28 integer :: pp2
29 end function
30 end interface
32 pointer :: pp3
33 interface
34 function pp3()
35 integer, pointer :: pp3
36 end function
37 end interface
39 interface
40 function pp4()
41 integer, pointer :: pp4
42 end function
43 end interface
44 pointer :: pp4
47 pp1 => f1
49 pp2 => pp1
51 f2 => f1 ! { dg-error "is not a variable" }
53 pp3 => f2
55 pp4 => pp3
57 end