diff options
Diffstat (limited to 'gcc/testsuite/gfortran.dg/module_blank_common.f90')
-rw-r--r-- | gcc/testsuite/gfortran.dg/module_blank_common.f90 | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/module_blank_common.f90 b/gcc/testsuite/gfortran.dg/module_blank_common.f90 new file mode 100644 index 000000000..a06ff0098 --- /dev/null +++ b/gcc/testsuite/gfortran.dg/module_blank_common.f90 @@ -0,0 +1,19 @@ +! { dg-do run } +! +! This tests that blank common works in modules. PR23270 +! Contributed by Paul Thomas <pault@gcc.gnu.org> +! +module global + common a, b + real a, b +end module global +program blank_common + use global + common z + complex z + a = 999.0_4 + b = -999.0_4 + if (z.ne.cmplx (a,b)) call abort () +end program blank_common + +! { dg-final { cleanup-modules "global" } } |