annotate gcc/testsuite/gfortran.dg/pr66465.f90 @ 144:8f4e72ab4e11

fix segmentation fault caused by nothing next cur_op to end
author Takahiro SHIMIZU <anatofuz@cr.ie.u-ryukyu.ac.jp>
date Sun, 23 Dec 2018 21:23:56 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 ! { dg-do compile }
kono
parents:
diff changeset
2 !
kono
parents:
diff changeset
3 ! Tests the fix for PR66465, in which the arguments of the call to
kono
parents:
diff changeset
4 ! ASSOCIATED were falsly detected to have different type/kind.
kono
parents:
diff changeset
5 !
kono
parents:
diff changeset
6 ! Contributed by Damian Rouson <damian@sourceryinstitute.org>
kono
parents:
diff changeset
7 !
kono
parents:
diff changeset
8 interface
kono
parents:
diff changeset
9 real function HandlerInterface (arg)
kono
parents:
diff changeset
10 real :: arg
kono
parents:
diff changeset
11 end
kono
parents:
diff changeset
12 end interface
kono
parents:
diff changeset
13
kono
parents:
diff changeset
14 type TextHandlerTestCase
kono
parents:
diff changeset
15 procedure (HandlerInterface), nopass, pointer :: handlerOut=>null()
kono
parents:
diff changeset
16 end type
kono
parents:
diff changeset
17
kono
parents:
diff changeset
18 type(TextHandlerTestCase) this
kono
parents:
diff changeset
19
kono
parents:
diff changeset
20 procedure (HandlerInterface), pointer :: procPtr=>null()
kono
parents:
diff changeset
21
kono
parents:
diff changeset
22 print*, associated(procPtr, this%handlerOut)
kono
parents:
diff changeset
23 end