aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gfortran.dg/test_common_binding_labels_2.f03
blob: ad654b35db4613102917309cae5655de5812e0af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
! { dg-do compile }
module test_common_binding_labels_2
  use, intrinsic :: iso_c_binding, only: c_double, c_int
  implicit none
  
  common /mycom/ r, s
  real(c_double) :: r
  real(c_double) :: s
  bind(c, name="my_common_block") :: /mycom/

  common /com2/ i 
  integer(c_int) :: i
  bind(c, name="") /com2/
end module test_common_binding_labels_2
! { dg-final { keep-modules "" } }