aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.fortran-torture
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2006-10-24 08:12:04 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2006-10-24 08:12:04 +0000
commit34fc5065e86dc46498da98d3dca4607464a1469b (patch)
treeadf831429b5156bf1ef5d0145644fdcd63bb9308 /gcc/testsuite/gfortran.fortran-torture
parentb52dd66cc0e3ce80b12a1f72f5153643bd22c450 (diff)
downloadgcc-34fc5065e86dc46498da98d3dca4607464a1469b.zip
gcc-34fc5065e86dc46498da98d3dca4607464a1469b.tar.gz
gcc-34fc5065e86dc46498da98d3dca4607464a1469b.tar.bz2
re PR tree-optimization/29567 (ICE in build2_stat, at tree.c:2963)
2006-10-24 Richard Guenther <rguenther@suse.de> PR tree-optimization/29567 * tree-vrp.c (register_edge_assert_for_1): Fix wrong logic for TRUTH_NOT_EXPR. Clarify comments. * gfortran.fortran-torture/compile/vrp_1.f90: New testcase. From-SVN: r117997
Diffstat (limited to 'gcc/testsuite/gfortran.fortran-torture')
-rw-r--r--gcc/testsuite/gfortran.fortran-torture/compile/vrp_1.f9017
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.fortran-torture/compile/vrp_1.f90 b/gcc/testsuite/gfortran.fortran-torture/compile/vrp_1.f90
new file mode 100644
index 0000000..a8d0c29
--- /dev/null
+++ b/gcc/testsuite/gfortran.fortran-torture/compile/vrp_1.f90
@@ -0,0 +1,17 @@
+ SUBROUTINE STONUM(STRVAR,LENGTH)
+ CHARACTER STRVAR*(*) , CHK
+ LOGICAL MEND , NMARK , MMARK , EMARK
+ NMARK = .FALSE.
+ MMARK = .FALSE.
+ DO WHILE ( .NOT.MEND )
+ IF ( CHK.GE.'0' .AND. CHK.LE.'9' ) THEN
+ IF ( CHK.EQ.'E' ) THEN
+ NMARK = .TRUE.
+ ELSEIF ( .NOT.MMARK .AND. CHK.EQ.'*' .AND. .NOT.NMARK ) &
+ & THEN
+ MMARK = .TRUE.
+ ENDIF
+ ENDIF
+ ENDDO
+ END
+