OSDN Git Service

2010-04-08 Tobias Burnus <burnus@net-b.de>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gfortran.dg / cshift_bounds_3.f90
1 ! { dg-do run }
2 ! { dg-options "-fbounds-check" }
3 ! { dg-shouldfail "Incorrect size in SHIFT argument of CSHIFT intrinsic: should not be zero-sized" }
4 program main
5   real, dimension(1,0) :: a, b, c
6   integer :: sp(3), i
7   a = 4.0
8   sp = 1
9   i = 1
10   b = cshift (a,sp(1:i)) ! Invalid
11 end program main
12 ! { dg-output "Fortran runtime error: Incorrect size in SHIFT argument of CSHIFT intrinsic: should not be zero-sized" }