summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/move_alloc_3.f90
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gfortran.dg/move_alloc_3.f90')
-rw-r--r--gcc/testsuite/gfortran.dg/move_alloc_3.f9012
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/move_alloc_3.f90 b/gcc/testsuite/gfortran.dg/move_alloc_3.f90
new file mode 100644
index 000000000..3855eede9
--- /dev/null
+++ b/gcc/testsuite/gfortran.dg/move_alloc_3.f90
@@ -0,0 +1,12 @@
+! { dg-do compile }
+!
+! PR 44595: INTENT of arguments to intrinsic procedures not checked
+!
+! Contributed by Janus Weil <janus@gcc.gnu.org>
+
+subroutine test(f)
+ implicit none
+ integer, allocatable, intent(in) :: f
+ integer, allocatable :: t
+ call move_alloc(f,t) ! { dg-error "cannot be INTENT.IN." }
+end subroutine