diff options
Diffstat (limited to 'gcc/testsuite/gfortran.dg/block_3.f90')
-rw-r--r-- | gcc/testsuite/gfortran.dg/block_3.f90 | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/block_3.f90 b/gcc/testsuite/gfortran.dg/block_3.f90 new file mode 100644 index 000000000..224262829 --- /dev/null +++ b/gcc/testsuite/gfortran.dg/block_3.f90 @@ -0,0 +1,12 @@ +! { dg-do compile } +! { dg-options "-std=f95" } + +! BLOCK should be rejected without F2008. + +PROGRAM main + IMPLICIT NONE + + BLOCK ! { dg-error "Fortran 2008" } + INTEGER :: i + END BLOCK +END PROGRAM main |