aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorTobias Burnus <burnus@gcc.gnu.org>2007-10-14 12:07:07 +0200
committerTobias Burnus <burnus@gcc.gnu.org>2007-10-14 12:07:07 +0200
commita815d7b121d79cfd618653050b7a2be8e0847040 (patch)
treeb393be215fedb1bcd7632303e4d6564bf5587ea0 /gcc
parent33fb2a99c3b4f9346938e9bd31020eb6e9734756 (diff)
downloadgcc-a815d7b121d79cfd618653050b7a2be8e0847040.zip
gcc-a815d7b121d79cfd618653050b7a2be8e0847040.tar.gz
gcc-a815d7b121d79cfd618653050b7a2be8e0847040.tar.bz2
bounds_check_10.f90: Fix testcase.
2007-10-14 Tobias Burnus <burnus@gcc.gnu.org> * gfortran.dg/bounds_check_10.f90: Fix testcase. From-SVN: r129293
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog6
-rw-r--r--gcc/testsuite/gfortran.dg/bounds_check_10.f902
2 files changed, 6 insertions, 2 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 83f025c..157d227 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,9 +1,13 @@
+2007-10-14 Tobias Burnus <burnus@gcc.gnu.org>
+
+ * gfortran.dg/bounds_check_10.f90: Fix testcase.
+
2007-10-13 Tobias Schlüter <tobi@gcc.gnu.org>
Paul Thomas <pault@gcc.gnu.org>
PR fortran/33254
PR fortran/33727
- * bounds_check_10.f90: New.
+ * gfortran.dg/bounds_check_10.f90: New.
2007-10-13 David Edelsohn <edelsohn@gnu.org>
diff --git a/gcc/testsuite/gfortran.dg/bounds_check_10.f90 b/gcc/testsuite/gfortran.dg/bounds_check_10.f90
index 02101af..3aba1cb 100644
--- a/gcc/testsuite/gfortran.dg/bounds_check_10.f90
+++ b/gcc/testsuite/gfortran.dg/bounds_check_10.f90
@@ -8,7 +8,7 @@ character (len=2) :: x, y
character (len=2) :: z(3)
x = "a "
y = "cd"
-z = [y(1:1), x(1:len(trim(x)))] ! should work
+z = [y(1:1), y(1:1), x(1:len(trim(x)))] ! should work
z = [trim(x), trim(y), "aaaa"] ! [ "a", "cd", "aaaa" ] should catch first error
end program array_char