[to-be-committed] [RISC-V] Use Zbkb for general 64 bit constants when profitable
[official-gcc.git] / gcc / testsuite / gfortran.dg / variable_parameter.f90
blobd653c30562fccbb9c1825cdc5572c52ab118da3f
1 ! { dg-do compile }
2 ! PR 87644 - this used to cause an ICE.
3 ! Test case by Matt Thompson.
4 module test
6 implicit none
7 private
8 public :: get
10 contains
12 subroutine initialize()
13 integer :: parameters
14 parameters = get()
15 end subroutine initialize
17 function get() result(parameters)
18 integer :: parameters
19 parameters = 1
20 end function get
22 end module test