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] - Blame information for rev 774

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

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do run }
2
! { dg-additional-sources c_ptr_tests_8_funcs.c }
3
program main
4
use iso_c_binding, only: c_ptr
5
implicit none
6
interface
7
  function create() bind(c)
8
    use iso_c_binding, only: c_ptr
9
    type(c_ptr) :: create
10
  end function create
11
  subroutine show(a) bind(c)
12
    import :: c_ptr
13
    type(c_ptr), VALUE :: a
14
  end subroutine show
15
end interface
16
 
17
type(c_ptr) :: ptr
18
ptr = create()
19
call show(ptr)
20
end program main

powered by: WebSVN 2.1.0

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