aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite
diff options
context:
space:
mode:
authorTobias Schlüter <tobias.schlueter@physik.uni-muenchen.de>2004-07-15 20:50:17 +0200
committerTobias Schlüter <tobi@gcc.gnu.org>2004-07-15 20:50:17 +0200
commitc5a419530e095f316911d63e6c2eb0008b10d160 (patch)
tree280339d8914657855c3ee4ea1f6c1fe0f773ae61 /gcc/testsuite
parentd157d9782201b9cd3b795add94e350506bc7d7e6 (diff)
downloadgcc-c5a419530e095f316911d63e6c2eb0008b10d160.zip
gcc-c5a419530e095f316911d63e6c2eb0008b10d160.tar.gz
gcc-c5a419530e095f316911d63e6c2eb0008b10d160.tar.bz2
re PR fortran/15140 (assertion failed: (TREE_CODE (sym->backend_decl) == PARM_DECL)
fortran/ PR fortran/15140 * trans-decl.c (gfc_trans_deferred_vars): Remove bogus assertion. testsuite/ PR fortran/15140 * gfortran.dg/pr15140.f90: New test. From-SVN: r84770
Diffstat (limited to 'gcc/testsuite')
-rw-r--r--gcc/testsuite/ChangeLog3
-rw-r--r--gcc/testsuite/gfortran.dg/pr15140.f9013
2 files changed, 16 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index bab2111..ccda3e5 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -6,6 +6,9 @@
PR fortran/15129
* gfortran.dg/pr15129.f90: New test.
+ PR fortran/15140
+ * gfortran.dg/pr15140.f90: New test.
+
2004-07-14 Mike Stump <mrs@apple.com>
* gcc.dg/20020426-2.c: Improve type safety wrt unsignedness.
diff --git a/gcc/testsuite/gfortran.dg/pr15140.f90 b/gcc/testsuite/gfortran.dg/pr15140.f90
new file mode 100644
index 0000000..393badc
--- /dev/null
+++ b/gcc/testsuite/gfortran.dg/pr15140.f90
@@ -0,0 +1,13 @@
+! { dg-do run }
+! PR 15140: we used to fail an assertion, because we don't use the
+! argument of the subroutine directly, but instead use a copy of it.
+function M(NAMES)
+ CHARACTER*(*) NAMES(*)
+ if (any(names.ne."asdfg")) call abort
+ m = LEN(NAMES(1))
+END function M
+
+character(5) :: c(2)
+c = "asdfg"
+if(m(c).ne.5) call abort()
+end