aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gfortran.dg/boz_7.f90
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gfortran.dg/boz_7.f90')
-rw-r--r--gcc-4.9/gcc/testsuite/gfortran.dg/boz_7.f9012
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gfortran.dg/boz_7.f90 b/gcc-4.9/gcc/testsuite/gfortran.dg/boz_7.f90
new file mode 100644
index 000000000..348f561d4
--- /dev/null
+++ b/gcc-4.9/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