2 ! PR fortran/45786 - operators were not correctly marked as public
3 ! if the alternative form was used.
4 ! Test case contributed by Neil Carlson.
7 public :: foo, operator(==)
11 interface operator(.eq.)
12 module procedure eq_foo
15 logical function eq_foo (a, b)
16 type(foo), intent(in) :: a, b
17 eq_foo = (a%bar == b%bar)
21 subroutine use_it (a, b)