URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [c_assoc_2.f03] - Rev 694
Compare with Previous | Blame | View Log
! { dg-do compile }module c_assoc_2use, intrinsic :: iso_c_binding, only: c_ptr, c_associatedcontainssubroutine sub0(my_c_ptr) bind(c)type(c_ptr), value :: my_c_ptrtype(c_ptr), pointer :: my_c_ptr_2integer :: my_integerif(.not. c_associated(my_c_ptr)) thencall abort()end ifif(.not. c_associated(my_c_ptr, my_c_ptr)) thencall abort()end ifif(.not. c_associated(my_c_ptr, my_c_ptr, my_c_ptr)) then ! { dg-error "More actual than formal arguments" }call abort()end ifif(.not. c_associated()) then ! { dg-error "Missing argument" }call abort()end if ! { dg-error "Expecting END SUBROUTINE" }if(.not. c_associated(my_c_ptr_2)) thencall abort()end ifif(.not. c_associated(my_integer)) then ! { dg-error "Type mismatch" }call abort()end ifend subroutine sub0end module c_assoc_2
