2015-07-03 Christophe Lyon <christophe.lyon@linaro.org>
[official-gcc.git] / gcc / testsuite / gfortran.dg / rank_4.f90
blobd09d3fb13373c90a2336c31f616a45c647786afb
1 ! { dg-do compile }
2 ! { dg-options "-std=f2008ts -fdump-tree-original" }
4 ! PR fortran/48820
7 program test_rank
8 implicit none
9 intrinsic :: rank
11 integer :: a
12 real, allocatable :: b(:,:)
14 if (rank(a) /= 0) call not_existing()
15 if (rank (b) /= 2) call not_existing()
16 end program test_rank
18 ! { dg-final { scan-tree-dump-times "not_existing" 0 "original" } }