view gcc/testsuite/gfortran.dg/block_15.f08 @ 118:fd00160c1b76

ifdef TARGET_64BIT
author mir3636
date Tue, 27 Feb 2018 15:01:35 +0900
parents 04ced10e8804
children
line wrap: on
line source

! { dg-do compile }
!
! Contributed by Tobias Burnus  <burnus@gcc.gnu.org>
! Check fix for PR62536 works as expected.

function f2 (x)
implicit none
  integer f2, x
  block
   block named ! { dg-error "Unclassifiable statement" }
    integer a ! should be SAVEd
    a = a + x ! should increment by y every time
    f2 = a
   end block named ! { dg-error "Syntax error in END BLOCK statement" }
  end block
  return
endfunction

end