3 use, intrinsic :: iso_c_binding
10 type :: my_c_type_0 ! { dg-error "must have the BIND attribute" }
14 type, bind(c) :: my_c_type_1 ! { dg-error "BIND.C. derived type" }
15 type(my_c_type_0) :: my_nested_type
16 type(c_ptr) :: c_address
17 integer(c_int), pointer :: j ! { dg-error "cannot have the POINTER" }
20 type, bind(c) :: t2 ! { dg-error "BIND.C. derived type" }
21 type (t2), pointer :: next ! { dg-error "cannot have the POINTER" }
24 type, bind(c):: t3 ! { dg-error "BIND.C. derived type" }
25 type(t), allocatable :: c(:) ! { dg-error "cannot have the ALLOCATABLE" }
29 subroutine sub0(my_type, expected_value) bind(c) ! { dg-error "is not C interoperable" }
30 type(my_c_type_1) :: my_type
31 integer(c_int), value :: expected_value
33 if (my_type%my_nested_type%i .ne. expected_value) then
37 end module bind_c_dts_3
39 ! { dg-final { cleanup-modules "bind_c_dts_3" } }