summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/parens_7.f90
blob: 5060e7a80d27efbfc4c64a2c2057b4d68fb7cd3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
! { 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