aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/pr86587.f90
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2019-08-27 15:19:26 +0000
committerJakub Jelinek <jakub@redhat.com>2019-08-27 15:19:26 +0000
commit522f3b741606e806f058efcdf6474f2cdcc56718 (patch)
tree73bbe6e4ed1d559a032261161b45b7d06167927d /gcc/testsuite/gfortran.dg/pr86587.f90
parentbd903dd991637c9f6a7d767e1b52c45fe89d55fe (diff)
parent78b52ce61b320949dc277b5911f8dba81d1ffb40 (diff)
svn merge -r271960:274943 svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-9-branch
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/redhat/gcc-9-branch@274959 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gfortran.dg/pr86587.f90')
-rw-r--r--gcc/testsuite/gfortran.dg/pr86587.f9018
1 files changed, 18 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/pr86587.f90 b/gcc/testsuite/gfortran.dg/pr86587.f90
new file mode 100644
index 00000000000..fb213352bb9
--- /dev/null
+++ b/gcc/testsuite/gfortran.dg/pr86587.f90
@@ -0,0 +1,18 @@
+! { dg-do compile }
+! PR fortran/86587
+! Code contirubted by Valentin Clement <valentin.clement at env dot ethz dot ch>
+!
+module mod1
+ use iso_c_binding
+ type, bind(c), private :: mytype
+ integer(c_int) :: i1, i2
+ end type
+end module mod1
+
+module mod2
+ use iso_c_binding
+ private
+ type, bind(c) :: mytype
+ integer(c_int) :: i1, i2
+ end type
+end module mod2