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
re PR fortran/78741 (ICE in gfc_get_symbol_decl, at fortran/trans-decl.c:1534)
[official-gcc.git]
/
gcc
/
testsuite
/
gfortran.dg
/
c_loc_pure_1.f90
blob
911f5429d4c6b5a36d68ef0d3a73cae8896fb6e7
1
! { dg-do compile }
2
! { dg-options "-Wimplicit-interface" }
3
! PR 38220 - c_loc is pure and has an explicit interface
4
USE
ISO_C_BINDING
,
ONLY
:
C_PTR
,
C_LOC
5
CONTAINS
6
PURE
SUBROUTINE
F
(
x
)
7
INTEGER
,
INTENT
(
in
),
TARGET
::
x
8
TYPE
(
C_PTR
) ::
px
9
px
=
C_LOC
(
x
)
10
END SUBROUTINE
11
END