2 ! { dg-options "-std=f2003" }
5 use, intrinsic :: iso_c_binding, only: c_int
8 integer(c_int), pointer :: get_ptr
9 integer(c_int), target :: x
14 USE ISO_C_BINDING, only: c_null_ptr, c_ptr, c_loc
21 ! Next two lines should be errors if -pedantic or -std=f2003
22 print *, c_null_ptr, t ! { dg-error "cannot have PRIVATE components" }
23 print *, t ! { dg-error "cannot have PRIVATE components" }
25 print *, c_loc(get_ptr()) ! { dg-error "cannot have PRIVATE components" }