OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [c_ptr_tests_8.f03] - Rev 774

Go to most recent revision | Compare with Previous | Blame | View Log

! { dg-do run }
! { dg-additional-sources c_ptr_tests_8_funcs.c }
program main
use iso_c_binding, only: c_ptr
implicit none
interface
  function create() bind(c)
    use iso_c_binding, only: c_ptr
    type(c_ptr) :: create
  end function create
  subroutine show(a) bind(c)
    import :: c_ptr
    type(c_ptr), VALUE :: a
  end subroutine show
end interface

type(c_ptr) :: ptr
ptr = create()
call show(ptr)
end program main

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.