comparison 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
comparison
equal deleted inserted replaced
131:84e7813d76e9 145:1830386684a0
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