re PR fortran/14077 (Data statement within a module that doesn't initialize a whole...
authorTobias Schlüter <tobias.schlueter@physik.uni-muenchen.de>
Fri, 9 Jul 2004 22:44:22 +0000 (00:44 +0200)
committerTobias Schlüter <tobi@gcc.gnu.org>
Fri, 9 Jul 2004 22:44:22 +0000 (00:44 +0200)
PR fortran/14077
* gfortran.fortran-torture/execute/module_init_1.f90: New test.

From-SVN: r84412

gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.fortran-torture/execute/module_init_1.f90 [new file with mode: 0644]

index 915f8ce0f809a93df5096a243b1844a39660eaa3..89d0e6d3a31d5caad41ccfe26e781c886841da01 100644 (file)
@@ -1,3 +1,8 @@
+2004-07-09  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
+       
+       PR fortran/14077
+       * gfortran.fortran-torture/execute/module_init_1.f90: New test.
+
 2004-07-09  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
 
        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 (file)
index 0000000..4394353
--- /dev/null
@@ -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