From 2e38371e01e1944f79f4cdec3ead6fae8d31950d Mon Sep 17 00:00:00 2001 From: Francois-Xavier Coudert Date: Wed, 4 Oct 2006 17:44:32 +0200 Subject: * gfortran.dg/bounds_check_fail_1.f90: New test. From-SVN: r117431 --- gcc/testsuite/ChangeLog | 4 ++++ gcc/testsuite/gfortran.dg/bounds_check_fail_1.f90 | 7 +++++++ 2 files changed, 11 insertions(+) create mode 100644 gcc/testsuite/gfortran.dg/bounds_check_fail_1.f90 (limited to 'gcc') diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index d819ac3..61168ffd 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 0000000..938d19a --- /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" } -- cgit v1.1