summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/exit_5.f03
blob: 3129b47439c9fffd6b17894efdbe6d0fe37c4d71 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
! { dg-do compile }
! { dg-options "-std=f2003" }

! PR fortran/44602
! Check for F2008 rejection of non-loop EXIT.

! Contributed by Daniel Kraft, d@domob.eu.

PROGRAM main
  IMPLICIT NONE

  myname: IF (.TRUE.) THEN
    EXIT myname ! { dg-error "Fortran 2008" }
  END IF myname
END PROGRAM main