14 type(foo
) function constructor()
21 if (f
%bar
/= 1) STOP 1
23 if (f
%bar
/= 2) STOP 2
24 end subroutine test_foo
28 ! Same as foo_module but order
29 ! of INTERFACE and TYPE reversed
39 type(bar
) function constructor()
46 if (f
%bar
/= 3) STOP 3
48 if (f
%bar
/= 4) STOP 4
49 end subroutine test_bar
62 if (f
%bar
/= 1) STOP 5
64 if (f
%bar
/= 2) STOP 6
68 if (b
%bar
/= 3) STOP 7
70 if (b
%bar
/= 4) STOP 8