gcc/testsuite/gfortran.dg/common_18.f90
raw| 1 | ! { dg-do compile } |
| 2 | ! |
| 3 | ! PR fortran/48858 |
| 4 | ! |
| 5 | ! |
| 6 | use iso_c_binding |
| 7 | contains |
| 8 | subroutine one() |
| 9 | bind(C, name="com1") :: /foo/ |
| 10 | integer(c_int) :: a |
| 11 | common /foo/ a |
| 12 | end subroutine |
| 13 | subroutine two() |
| 14 | integer(c_long) :: a |
| 15 | common /foo/ a |
| 16 | end subroutine two |
| 17 | end |
| 18 | |
| 19 | ! { dg-final { scan-assembler "com1" } } |
| 20 | ! { dg-final { scan-assembler "foo_" } } |