Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gfortran.dg/deferred_type_param_3.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 |
rev | line source |
---|---|
111 | 1 ! { dg-do compile } |
2 ! | |
3 ! PR fortran/45170 | |
4 ! PR fortran/52158 | |
5 ! | |
6 ! Contributed by Damian Rouson | |
7 | |
8 module speaker_class | |
9 type speaker | |
10 contains | |
11 procedure :: speak | |
12 end type | |
13 contains | |
14 function speak(this) | |
15 class(speaker) ,intent(in) :: this | |
16 character(:) ,allocatable :: speak | |
17 end function | |
18 subroutine say_something(somebody) | |
19 class(speaker) :: somebody | |
20 print *,somebody%speak() | |
21 end subroutine | |
22 end module | |
23 |