aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gfortran.dg/bind_c_usage_26.f90
blob: 20a68d1af24eab73b530ff9454d86c20052dc306 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
! { dg-do compile }
!
! PR fortran/53985
!
! Check that the (default) -Wno-c-binding-type works
! and no warning is printed.
!
! With -Wc-binding-type, one gets:
!  Warning: Variable 'x' at (1) is a dummy argument to the BIND(C) procedure
!           'test' but may not be C interoperable )
!
subroutine test(x) bind(C)
  integer :: x
end subroutine test