view gcc/testsuite/gfortran.dg/argument_checking_21.f90 @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents
children
line wrap: on
line source

! { dg-do compile }
! { dg-options "-fallow-argument-mismatch" }
program main
  real :: a(10), b(10,10)
! This should be caugt
  call foo(1.0) ! { dg-warning "Rank mismatch" }
  call foo(b)   ! { dg-warning "Rank mismatch" }
! This is OK
  call bar(a)
  call bar(b)

end program main