Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gfortran.dg/proc_decl_19.f90 @ 158:494b0b89df80 default tip
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:13:55 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 ! { dg-do compile } |
2 ! | |
3 ! PR 36426 | |
4 ! | |
5 ! Contributed by Tobias Burnus <burnus@gcc.gnu.org> | |
6 | |
7 abstract interface | |
8 function foo(x) | |
9 character(len=*) :: x | |
10 character(len=len(x)) :: foo | |
11 end function foo | |
12 end interface | |
13 procedure(foo) :: bar | |
14 | |
15 abstract interface | |
16 character function abs_fun() | |
17 end function | |
18 end interface | |
19 procedure(abs_fun):: x | |
20 | |
21 character(len=20) :: str | |
22 str = bar("Hello") | |
23 end |