view gcc/testsuite/gfortran.dg/parens_7.f90 @ 152:2b5abeee2509

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents 04ced10e8804
children
line wrap: on
line source

! { dg-do compile }
! PR34432 integer(kind=init_expression) function  is rejected
module m
  integer, parameter :: int_t = 4
end module m

program test
  print *, test4()
contains

integer(kind=(int_t)) function test4() ! This failed before patch
  use m
  test4 = 345
end function test4

 
end program test