summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/pr37287-1.f90
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gfortran.dg/pr37287-1.f90')
-rw-r--r--gcc/testsuite/gfortran.dg/pr37287-1.f9016
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/pr37287-1.f90 b/gcc/testsuite/gfortran.dg/pr37287-1.f90
new file mode 100644
index 000000000..629966fe9
--- /dev/null
+++ b/gcc/testsuite/gfortran.dg/pr37287-1.f90
@@ -0,0 +1,16 @@
+! PR debug/37287
+! { dg-do link }
+! { dg-options "-g -DPR37287_1" }
+! { dg-additional-sources pr37287-2.F90 }
+module pr37287_1
+ use iso_c_binding, only : c_ptr, c_associated, c_null_ptr
+ implicit none
+contains
+ subroutine set_null(ptr)
+ type(c_ptr), intent(out) :: ptr
+ ptr = c_null_ptr
+ end subroutine set_null
+end module pr37287_1
+end
+! { dg-final { cleanup-modules "pr37287_1" } }
+! { dg-final { cleanup-modules "pr37287_2" } }