view gcc/testsuite/gfortran.dg/bind_c_usage_26.f90 @ 128:fe568345ddd5

fix CbC-example
author mir3636
date Wed, 11 Apr 2018 19:32:28 +0900
parents 04ced10e8804
children
line wrap: on
line source

! { 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