Support -std=f2018
[gcc.git] / gcc / testsuite / gfortran.dg / error_stop_4.f90
1 ! { dg-do compile }
2 ! { dg-options "-std=f2008ts" }
3 !
4 ! F2018 permits ERROR STOP in PURE procedures
5 !
6 pure subroutine foo()
7 error stop "failed" ! { dg-error "Fortran 2018: ERROR STOP statement at .1. in PURE procedure" }
8 end