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
* tree-loop-distribution.c (struct partition): New field recording
[official-gcc.git]
/
gcc
/
testsuite
/
gfortran.dg
/
c_loc_tests_10.f03
blob
21b8526c2ab8f2731ace61c5353545c4b477b855
1
! { dg-do compile }
2
! { dg-options "-std=f2003" }
3
subroutine aaa(in)
4
use iso_c_binding
5
implicit none
6
integer(KIND=C_int), DIMENSION(:), TARGET :: in
7
type(c_ptr) :: cptr
8
cptr = c_loc(in) ! { dg-error "Fortran 2008: Array of interoperable type at .1. to C_LOC which is nonallocatable and neither assumed size nor explicit size" }
9
end subroutine aaa