1 ! RUN: %python %S/test_errors.py %s %flang_fc1
2 ! Ensure that an impure bound operator can't be called
7 procedure
:: binding
=> func
8 generic
:: operator(.not
.) => binding
11 impure
integer function func(x
)
12 class(t
), intent(in
) :: x
15 pure
integer function test
16 !ERROR: Procedure 'func' referenced in pure subprogram 'test' must be pure too