repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[AArch64] Merge stores of D-register values with different modes
[official-gcc.git]
/
gcc
/
testsuite
/
gfortran.dg
/
c_ptr_tests_8.f03
blob
3b99ee8bb0f40998d439197fbdd098384827e7e3
1
! { 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