Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/cshift_bounds_2.f90 @ 118:fd00160c1b76
ifdef TARGET_64BIT
author | mir3636 |
---|---|
date | Tue, 27 Feb 2018 15:01:35 +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" }