summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/bind_c_dts_4.f03
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gfortran.dg/bind_c_dts_4.f03')
-rw-r--r--gcc/testsuite/gfortran.dg/bind_c_dts_4.f0310
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/bind_c_dts_4.f03 b/gcc/testsuite/gfortran.dg/bind_c_dts_4.f03
new file mode 100644
index 00000000000..b2eb5694f1c
--- /dev/null
+++ b/gcc/testsuite/gfortran.dg/bind_c_dts_4.f03
@@ -0,0 +1,10 @@
+! { dg-do compile }
+module test
+use iso_c_binding, only: c_int
+ type, bind(c) :: foo
+ integer :: p ! { dg-warning "may not be C interoperable" }
+ end type
+ type(foo), bind(c) :: cp
+end module test
+
+! { dg-final { cleanup-modules "test" } }