summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/test_common_binding_labels_2.f03
blob: 8c319028a6d061b7bc871ea20080c2edcfb2a3df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
! { 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