Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(694)

Unified Diff: gcc/gcc/testsuite/gfortran.dg/proc_ptr_8.f90

Issue 3050029: [gcc] GCC 4.5.0=>4.5.1 (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/nacl-toolchain.git
Patch Set: Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gcc/gcc/testsuite/gfortran.dg/proc_ptr_3.f90 ('k') | gcc/gcc/testsuite/gfortran.dg/proc_ptr_common_1.f90 » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gcc/gcc/testsuite/gfortran.dg/proc_ptr_8.f90
diff --git a/gcc/gcc/testsuite/gfortran.dg/proc_ptr_8.f90 b/gcc/gcc/testsuite/gfortran.dg/proc_ptr_8.f90
index 80d26619bc01acaa88ad7dbba70cd66d3f46d708..f45d114f833698aa63a50fe2209e0577a043c753 100644
--- a/gcc/gcc/testsuite/gfortran.dg/proc_ptr_8.f90
+++ b/gcc/gcc/testsuite/gfortran.dg/proc_ptr_8.f90
@@ -23,12 +23,23 @@ MODULE X
END MODULE X
USE X
-PROCEDURE(mytype), POINTER :: ptype
+PROCEDURE(mytype), POINTER :: ptype,ptype2
CALL init()
CALL C_F_PROCPOINTER(funpointer,ptype)
if (ptype(3) /= 9) call abort()
+! the stuff below was added with PR 42072
+call setpointer(ptype2)
+if (ptype2(4) /= 12) call abort()
+
+contains
+
+ subroutine setpointer (p)
+ PROCEDURE(mytype), POINTER :: p
+ CALL C_F_PROCPOINTER(funpointer,p)
+ end subroutine
+
END
! { dg-final { cleanup-modules "X" } }
« no previous file with comments | « gcc/gcc/testsuite/gfortran.dg/proc_ptr_3.f90 ('k') | gcc/gcc/testsuite/gfortran.dg/proc_ptr_common_1.f90 » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698