From: Francois-Xavier Coudert Date: Wed, 4 Oct 2006 15:44:32 +0000 (+0200) Subject: * gfortran.dg/bounds_check_fail_1.f90: New test. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2e38371e01e1944f79f4cdec3ead6fae8d31950d;p=gcc.git * gfortran.dg/bounds_check_fail_1.f90: New test. From-SVN: r117431 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index d819ac34178..61168ffde1f 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2006-10-04 Francois-Xavier Coudert + + * gfortran.dg/bounds_check_fail_1.f90: New test. + 2006-10-03 Mark Mitchell PR c++/29020 diff --git a/gcc/testsuite/gfortran.dg/bounds_check_fail_1.f90 b/gcc/testsuite/gfortran.dg/bounds_check_fail_1.f90 new file mode 100644 index 00000000000..938d19a6409 --- /dev/null +++ b/gcc/testsuite/gfortran.dg/bounds_check_fail_1.f90 @@ -0,0 +1,7 @@ +! { dg-do run } +! { dg-options "-fbounds-check" } +! { dg-shouldfail "foo" } + integer x(1) + x(2) = x(1) ! { dg-warning "out of bounds" } + end +! { dg-output "out of bounds for array 'x', upper bound of dimension 1 exceeded.*at line 5" }