summaryrefslogtreecommitdiffstats
path: root/gcc/testsuite/gfortran.dg/bind_c_dts_4.f03
blob: b2eb5694f1c477a4fce797dfb946c219676d5df3 (plain)
1
2
3
4
5
6
7
8
9
10
! { dg-do compile }
module test
use iso_c_binding, only: c_int
    type, bind(c) ::  foo
      integer :: p ! { dg-warning "may not be C interoperable" }
    end type
    type(foo), bind(c) :: cp
end module test

! { dg-final { cleanup-modules "test" } }
OpenPOWER on IntegriCloud