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
PR ipa/83051
[official-gcc.git]
/
gcc
/
testsuite
/
gfortran.dg
/
pr71862.f90
blob
411bfc27848c9884729257ccd5028f051f2b2be2
1
! { dg-do compile }
2
program
p
3
type
t
4
integer
::
n
=
0
5
integer
,
pointer
::
q
=>
null
()
6
end type
7
type
(
t
) ::
x
8
print
*,
associated
(
x
%
q
)
9
x
=
f
()
10
print
*,
associated
(
x
%
q
)
11
contains
12
function
f
()
result
(
z
)
! { dg-error "must be dummy, allocatable or pointer" }
13
class
(
t
) ::
z
14
print
*,
associated
(
z
%
q
)
15
end
16
end