14 type(foo
) function constructor()
21 if (f
%bar
/= 1) call abort ()
23 if (f
%bar
/= 2) call abort ()
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) call abort ()
48 if (f
%bar
/= 4) call abort ()
49 end subroutine test_bar
62 if (f
%bar
/= 1) call abort ()
64 if (f
%bar
/= 2) call abort ()
68 if (b
%bar
/= 3) call abort ()
70 if (b
%bar
/= 4) call abort ()