diff options
Diffstat (limited to 'gcc/testsuite/gfortran.dg/common_18.f90')
-rw-r--r-- | gcc/testsuite/gfortran.dg/common_18.f90 | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/common_18.f90 b/gcc/testsuite/gfortran.dg/common_18.f90 new file mode 100644 index 00000000000..374eda8eee1 --- /dev/null +++ b/gcc/testsuite/gfortran.dg/common_18.f90 @@ -0,0 +1,20 @@ +! { dg-do compile } +! +! PR fortran/48858 +! +! +use iso_c_binding +contains +subroutine one() + bind(C, name="com1") :: /foo/ + integer(c_int) :: a + common /foo/ a +end subroutine +subroutine two() + integer(c_long) :: a + common /foo/ a +end subroutine two +end + +! { dg-final { scan-assembler "com1" } } +! { dg-final { scan-assembler "foo_" } } |