Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/cshift_bounds_2.f90 @ 128:fe568345ddd5
fix CbC-example
author | mir3636 |
---|---|
date | Wed, 11 Apr 2018 19:32:28 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
! { dg-do run } ! { dg-options "-fbounds-check -fno-realloc-lhs" } ! { dg-shouldfail "Incorrect extent in return value of CSHIFT intrinsic in dimension 2: is 3, should be 2" } program main integer, dimension(:,:), allocatable :: a, b allocate (a(2,2)) allocate (b(2,3)) a = 1 b = cshift(a,1) end program main ! { dg-output "Fortran runtime error: Incorrect extent in return value of CSHIFT intrinsic in dimension 2: is 3, should be 2" }