PR tree-optimization/86415 - strlen() not folded for substrings within constant arrays
[official-gcc.git] / gcc / testsuite / gfortran.dg / proc_ptr_comp_50.f90
blobd62d8326dd7ae47aa95d460732846bfc82517e42
1 ! { dg-do compile }
3 ! PR 70601: [5/6/7 Regression] [OOP] ICE on procedure pointer component call
5 ! Contributed by zmi <zmi007@gmail.com>
7 program test
8 implicit none
10 type :: concrete_type
11 procedure (run_concrete_type), pointer :: run
12 end type
14 type(concrete_type), allocatable :: concrete
16 allocate(concrete)
17 concrete % run => run_concrete_type
18 call concrete % run()
20 contains
22 subroutine run_concrete_type(this)
23 class(concrete_type) :: this
24 end subroutine
26 end