diff options
Diffstat (limited to 'gcc/testsuite/gfortran.dg/common_equivalence_3.f')
-rw-r--r-- | gcc/testsuite/gfortran.dg/common_equivalence_3.f | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/common_equivalence_3.f b/gcc/testsuite/gfortran.dg/common_equivalence_3.f new file mode 100644 index 000000000..6acd46aa3 --- /dev/null +++ b/gcc/testsuite/gfortran.dg/common_equivalence_3.f @@ -0,0 +1,14 @@ +! { dg-do compile } +! PR fortran/18870 +! + program main + equivalence (a,c) + equivalence (b,c) + common /foo/ a + common /bar/ b ! { dg-error "equivalenced to another COMMON" } + c=3. + print *,a + print *,b + end + + |