PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gfortran.dg / block_15.f08
blobfd1ca55737287ce9563cb88cd4922872e89b44d3
1 ! { dg-do compile }
3 ! Contributed by Tobias Burnus  <burnus@gcc.gnu.org>
4 ! Check fix for PR62536 works as expected.
6 function f2 (x)
7 implicit none
8   integer f2, x
9   block
10    block named ! { dg-error "Unclassifiable statement" }
11     integer a ! should be SAVEd
12     a = a + x ! should increment by y every time
13     f2 = a
14    end block named ! { dg-error "Syntax error in END BLOCK statement" }
15   end block
16   return
17 endfunction
19 end