From 5721c2bebfa93818068b49b15c2fe891cbb580cf Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tobias=20Schl=C3=BCter?= Date: Sat, 10 Jul 2004 00:44:22 +0200 Subject: [PATCH] re PR fortran/14077 (Data statement within a module that doesn't initialize a whole array creates an error) PR fortran/14077 * gfortran.fortran-torture/execute/module_init_1.f90: New test. From-SVN: r84412 --- gcc/testsuite/ChangeLog | 5 +++++ .../gfortran.fortran-torture/execute/module_init_1.f90 | 9 +++++++++ 2 files changed, 14 insertions(+) create mode 100644 gcc/testsuite/gfortran.fortran-torture/execute/module_init_1.f90 diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 915f8ce0f80..89d0e6d3a31 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2004-07-09 Tobias Schlueter + + PR fortran/14077 + * gfortran.fortran-torture/execute/module_init_1.f90: New test. + 2004-07-09 Tobias Schlueter PR fortran/13201 diff --git a/gcc/testsuite/gfortran.fortran-torture/execute/module_init_1.f90 b/gcc/testsuite/gfortran.fortran-torture/execute/module_init_1.f90 new file mode 100644 index 00000000000..4394353d311 --- /dev/null +++ b/gcc/testsuite/gfortran.fortran-torture/execute/module_init_1.f90 @@ -0,0 +1,9 @@ +! PR 13077: we used to fail when reading the module +module m1 +real, dimension(3) :: a +data a(1:3) /2*1.0/ +end module m1 +use m1 +if (a(1).NE.1.) call abort() +if (a(1).NE.a(3)) call abort() +end -- 2.30.2