diff options
Diffstat (limited to 'gcc/testsuite/gfortran.dg/common_3.f90')
-rw-r--r-- | gcc/testsuite/gfortran.dg/common_3.f90 | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/common_3.f90 b/gcc/testsuite/gfortran.dg/common_3.f90 new file mode 100644 index 000000000..818738e45 --- /dev/null +++ b/gcc/testsuite/gfortran.dg/common_3.f90 @@ -0,0 +1,9 @@ +! { dg-do compile } +! Check that equivalences match common block layout. +program common_3 + common /block/ a, b, c, d ! { dg-error "not match ordering" "" } + integer a, b, c, d, n + dimension n(4) + equivalence (a, n(1)) + equivalence (c, n(4)) +end program |