diff options
Diffstat (limited to 'gcc/testsuite/gfortran.dg/boz_7.f90')
-rw-r--r-- | gcc/testsuite/gfortran.dg/boz_7.f90 | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/boz_7.f90 b/gcc/testsuite/gfortran.dg/boz_7.f90 new file mode 100644 index 000000000..348f561d4 --- /dev/null +++ b/gcc/testsuite/gfortran.dg/boz_7.f90 @@ -0,0 +1,12 @@ +! { dg-do compile } +! { dg-options "-std=f95 -pedantic" } +! +! PR fortran/34342 +! +! Some BOZ extensions where not diagnosed +! +integer :: k, m +integer :: j = z'000abc' ! { dg-error "BOZ used outside a DATA statement" } +data k/x'0003'/ ! { dg-error "uses non-standard syntax" } +data m/'0003'z/ ! { dg-error "uses non-standard postfix syntax" } +end |