3 use, intrinsic :: iso_c_binding
5 type, bind(c) :: my_c_type ! { dg-error "BIND.C. derived type" }
6 integer(c_int), pointer :: ptr ! { dg-error "cannot have the POINTER attribute" }
9 type, bind(c) :: my_type ! { dg-error "BIND.C. derived type" }
10 integer(c_int), allocatable :: ptr(:) ! { dg-error "cannot have the ALLOCATABLE attribute" }
13 type foo ! { dg-error "must have the BIND attribute" }
17 type(foo), bind(c) :: cp ! { dg-error "is not C interoperable" }
18 real(c_double), pointer,bind(c) :: p ! { dg-error "cannot have both the POINTER and BIND.C." }