aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/testsuite/gfortran.dg/pr68283.f9015
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/pr68283.f90 b/gcc/testsuite/gfortran.dg/pr68283.f90
new file mode 100644
index 0000000..81f7412
--- /dev/null
+++ b/gcc/testsuite/gfortran.dg/pr68283.f90
@@ -0,0 +1,15 @@
+! { dg-do compile }
+MODULE neb_utils
+ IMPLICIT NONE
+ INTEGER, PARAMETER :: dp=8
+ TYPE neb_var_type
+ REAL(KIND=dp), DIMENSION(:, :), POINTER :: xyz, int, wrk
+ END TYPE neb_var_type
+CONTAINS
+ SUBROUTINE get_neb_force()
+ INTEGER :: i
+ TYPE(neb_var_type), POINTER :: forces
+ REAL(KIND=dp), ALLOCATABLE, DIMENSION(:) :: dtmp1, wrk
+ dtmp1 = forces%wrk(:,i)-dot_product_band ! { dg-error "Symbol 'dot_product_band' at .1. has no IMPLICIT type" }
+ END SUBROUTINE get_neb_force
+END MODULE neb_utils