diff options
Diffstat (limited to 'gcc/testsuite/gfortran.dg/common_21.f90')
-rw-r--r-- | gcc/testsuite/gfortran.dg/common_21.f90 | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/common_21.f90 b/gcc/testsuite/gfortran.dg/common_21.f90 new file mode 100644 index 0000000000..73a1b58a1a --- /dev/null +++ b/gcc/testsuite/gfortran.dg/common_21.f90 @@ -0,0 +1,18 @@ +! { dg-do compile } +! { dg-options "-std=f2008" } +! +! PR fortran/48858 +! +subroutine test + integer :: l, m + common /g/ l + common /jj/ m + bind(C,name="bar") :: /g/ + bind(C,name="foo") :: /jj/ +end + +subroutine g + call jj() +end + + |