diff options
author | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2018-02-23 22:36:54 +0000 |
---|---|---|
committer | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2018-02-23 22:36:54 +0000 |
commit | 88a3ea34080ad3087a8191fbf479543153175d59 (patch) | |
tree | 34eaec34d3588e09f9a77abba776266f124dc823 /gcc/testsuite/gfortran.dg/class_68.f90 | |
parent | 25e15aaed275cdfef34b3ee6eb3cb4b43a48d44f (diff) | |
parent | e65055a558093bd4fc0b1b0024b7814cc187b8e8 (diff) | |
download | gccgo.tar.gz |
Merge from trunk revision 257954.gccgo
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gccgo@257955 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gfortran.dg/class_68.f90')
-rw-r--r-- | gcc/testsuite/gfortran.dg/class_68.f90 | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/class_68.f90 b/gcc/testsuite/gfortran.dg/class_68.f90 new file mode 100644 index 00000000000..fce30eac197 --- /dev/null +++ b/gcc/testsuite/gfortran.dg/class_68.f90 @@ -0,0 +1,25 @@ +! { dg-do compile } +! +! Test the fix for PR83148. +! +! Contributed by Neil Carlson <neil.n.carlson@gmail.com> +! +module fhypre + use iso_c_binding, only: c_ptr, c_null_ptr + use iso_c_binding, only: hypre_obj => c_ptr, hypre_null_obj => c_null_ptr + private + public :: hypre_obj, hypre_null_obj +end module + +module hypre_hybrid_type + use fhypre + type hypre_hybrid + type(hypre_obj) :: solver = hypre_null_obj + end type hypre_hybrid +end module + + use hypre_hybrid_type + class(hypre_hybrid), allocatable :: x + allocate (x) +end + |