From: Tobias Schlüter Date: Fri, 9 Jul 2004 22:44:22 +0000 (+0200) Subject: re PR fortran/14077 (Data statement within a module that doesn't initialize a whole... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5721c2bebfa93818068b49b15c2fe891cbb580cf;p=gcc.git 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 --- 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