| 1 |
! { dg-do compile } |
| 2 |
! { dg-options "-fallow-argument-mismatch" } |
| 3 |
program main |
| 4 |
real :: a(10), b(10,10) |
| 5 |
! This should be caugt |
| 6 |
call foo(1.0) ! { dg-warning "Rank mismatch" } |
| 7 |
call foo(b) ! { dg-warning "Rank mismatch" } |
| 8 |
! This is OK |
| 9 |
call bar(a) |
| 10 |
call bar(b) |
| 11 |
|
| 12 |
end program main |