gcc/testsuite/gfortran.dg/rank_4.f90
raw| 1 | ! { dg-do compile } |
| 2 | ! { dg-options "-std=f2008ts -fdump-tree-original" } |
| 3 | ! |
| 4 | ! PR fortran/48820 |
| 5 | ! |
| 6 | |
| 7 | program test_rank |
| 8 | implicit none |
| 9 | intrinsic :: rank |
| 10 | |
| 11 | integer :: a |
| 12 | real, allocatable :: b(:,:) |
| 13 | |
| 14 | if (rank(a) /= 0) call not_existing() |
| 15 | if (rank (b) /= 2) call not_existing() |
| 16 | end program test_rank |
| 17 | |
| 18 | ! { dg-final { scan-tree-dump-times "not_existing" 0 "original" } } |