aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/forall_16.f90
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gfortran.dg/forall_16.f90')
-rw-r--r--gcc/testsuite/gfortran.dg/forall_16.f909
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/forall_16.f90 b/gcc/testsuite/gfortran.dg/forall_16.f90
new file mode 100644
index 0000000..017aa5a
--- /dev/null
+++ b/gcc/testsuite/gfortran.dg/forall_16.f90
@@ -0,0 +1,9 @@
+! { dg-do compile }
+! PR fortran/50540
+!
+ implicit none
+ integer i,dest(10)
+ forall (i=2:ix) dest(i)=i ! { dg-error "has no IMPLICIT type" }
+end
+
+! { dg-excess-errors "Can't convert UNKNOWN to INTEGER" }