aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gfortran.dg/pack_assign_1.f90
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gfortran.dg/pack_assign_1.f90')
-rw-r--r--gcc-4.9/gcc/testsuite/gfortran.dg/pack_assign_1.f908
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gfortran.dg/pack_assign_1.f90 b/gcc-4.9/gcc/testsuite/gfortran.dg/pack_assign_1.f90
new file mode 100644
index 000000000..7c480fc36
--- /dev/null
+++ b/gcc-4.9/gcc/testsuite/gfortran.dg/pack_assign_1.f90
@@ -0,0 +1,8 @@
+! { dg-do compile }
+! PR32890 - compile-time checks for assigments
+
+INTEGER :: it, neighbrs(42) ! anything but 30
+
+neighbrs = PACK((/ (it, it=1,30) /), (/ (it, it=1,30) /) < 3, (/ (0,it=1,30) /) ) ! { dg-error "Different shape" }
+
+END