From a53334a410414050de6771bddf44f6febbc51e53 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tobias=20Schl=C3=BCter?= Date: Sun, 11 Jul 2004 00:59:58 +0200 Subject: [PATCH] re PR fortran/16336 (ICE with common block in module) PR fortran/16336 * gfortran.fortran-torture/execute/common_2.f90: New test. From-SVN: r84478 --- gcc/testsuite/ChangeLog | 5 +++++ .../gfortran.fortran-torture/execute/common_2.f90 | 14 ++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 gcc/testsuite/gfortran.fortran-torture/execute/common_2.f90 diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 497eca53383..3d97823ae49 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2004-07-10 Tobias Schlueter + + PR fortran/16336 + * gfortran.fortran-torture/execute/common_2.f90: New test. + 2004-07-10 Paul Brook * gfortran.fortran-torture/execute/der_init_5.f90: Enable more tests. diff --git a/gcc/testsuite/gfortran.fortran-torture/execute/common_2.f90 b/gcc/testsuite/gfortran.fortran-torture/execute/common_2.f90 new file mode 100644 index 00000000000..fd7f76220f5 --- /dev/null +++ b/gcc/testsuite/gfortran.fortran-torture/execute/common_2.f90 @@ -0,0 +1,14 @@ +! PR fortran/16336 -- the two common blocks used to clash +MODULE bar +INTEGER :: I +COMMON /X/I +END MODULE bar + +USE bar +INTEGER :: J +COMMON /X/J +j = 1 +i = 2 +if (j.ne.i) call abort() +if (j.ne.2) call abort() +END -- 2.30.2