| ! RUN: %python %S/test_errors.py %s %flang_fc1 |
| ! Test resolution of type-bound generics. |
| procedure, pass(x) :: add1 => add |
| procedure, nopass :: add2 => add |
| generic :: g => add1, add2, add_real |
| integer function add(x, y) |
| class(t), intent(in) :: x, y |
| integer function add_real(x, y) |
| class(t), intent(in) :: x |
| subroutine test1(x, y, z) |
| !ERROR: No specific procedure of generic 'g' matches the actual arguments |
| subroutine test2(x, y, z) |
| !ERROR: No specific procedure of generic 'g' matches the actual arguments |