aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Burley <craig@jcb-sc.com>1999-04-19 21:29:25 +0000
committerCraig Burley <burley@gcc.gnu.org>1999-04-19 17:29:25 -0400
commit2e6472064f0e3a2d524163bf7c9f7f8a33eaf08e (patch)
tree506985485c86f4737323b40b6a12370924700d29
parent5b916f262a827a5b81cc489b931b538bf972e918 (diff)
downloadgcc-2e6472064f0e3a2d524163bf7c9f7f8a33eaf08e.zip
gcc-2e6472064f0e3a2d524163bf7c9f7f8a33eaf08e.tar.gz
gcc-2e6472064f0e3a2d524163bf7c9f7f8a33eaf08e.tar.bz2
new tests, derived from bug-reports from Toon and Tim
From-SVN: r26552
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/g77.f-torture/compile/19990419-0.f7
-rw-r--r--gcc/testsuite/g77.f-torture/execute/19990419-1.f21
3 files changed, 33 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index e46b33a..834cebf 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+1999-04-20 Craig Burley <craig@jcb-sc.com>
+
+ * g77.f-torture/compile/19990419-0.f: New test.
+ * g77.f-torture/execute/19990419-1.f: New test.
+
Sat Apr 17 16:56:48 1999 Richard Henderson <rth@cygnus.com>
* gcc.dg/uninit-9.c (func): Use __builtin_alloca instead of alloca
diff --git a/gcc/testsuite/g77.f-torture/compile/19990419-0.f b/gcc/testsuite/g77.f-torture/compile/19990419-0.f
new file mode 100644
index 0000000..084e7a2
--- /dev/null
+++ b/gcc/testsuite/g77.f-torture/compile/19990419-0.f
@@ -0,0 +1,7 @@
+* Test case Toon submitted, cut down to expose the one bug.
+* Belongs in compile/.
+ SUBROUTINE INIERS1
+ IMPLICIT LOGICAL(L)
+ COMMON/COMIOD/ NHIERS1, LERS1
+ inquire(nhiers1, exist=lers1)
+ END
diff --git a/gcc/testsuite/g77.f-torture/execute/19990419-1.f b/gcc/testsuite/g77.f-torture/execute/19990419-1.f
new file mode 100644
index 0000000..7449bac
--- /dev/null
+++ b/gcc/testsuite/g77.f-torture/execute/19990419-1.f
@@ -0,0 +1,21 @@
+* Test DO WHILE, to make sure it fully reevaluates its expression.
+* Belongs in execute/.
+ common /x/ ival
+ j = 0
+ do while (i() .eq. 1)
+ j = j + 1
+ if (j .gt. 5) call abort
+ end do
+ if (j .ne. 4) call abort
+ if (ival .ne. 5) call abort
+ end
+ function i()
+ common /x/ ival
+ ival = ival + 1
+ i = 10
+ if (ival .lt. 5) i = 1
+ end
+ block data
+ common /x/ ival
+ data ival/0/
+ end