Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gfortran.dg/argument_checking_21.f90 @ 158:494b0b89df80 default tip
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:13:55 +0900 |
parents | 1830386684a0 |
children |
rev | line source |
---|---|
145 | 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 |