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
Fix compilation failure with C++98 compilers
[official-gcc.git]
/
gcc
/
testsuite
/
gfortran.dg
/
c_f_pointer_tests_7.f90
blob
8cabd18d1389f20e762d14aa3d2a509096dc3a81
1
! { dg-do compile }
2
!
3
! PR fortran/54263
4
!
5
use
iso_c_binding
6
type
(
c_ptr
) ::
cp
7
integer
,
pointer
::
p
8
call
c_f_pointer
(
cp
,
p
,
shape
=[
2
])
! { dg-error "Unexpected SHAPE argument at .1. to C_F_POINTER with scalar FPTR" }
9
end