diff options
Diffstat (limited to 'gcc/testsuite/gfortran.dg/bind_c_implicit_vars.f03')
-rw-r--r-- | gcc/testsuite/gfortran.dg/bind_c_implicit_vars.f03 | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/bind_c_implicit_vars.f03 b/gcc/testsuite/gfortran.dg/bind_c_implicit_vars.f03 new file mode 100644 index 000000000..d6b4b6d61 --- /dev/null +++ b/gcc/testsuite/gfortran.dg/bind_c_implicit_vars.f03 @@ -0,0 +1,12 @@ +! { dg-do compile } +module bind_c_implicit_vars + +bind(c) :: j ! { dg-warning "may not be C interoperable" } + +contains + subroutine sub0(i) bind(c) ! { dg-warning "may not be C interoperable" } + i = 0 + end subroutine sub0 +end module bind_c_implicit_vars + +! { dg-final { cleanup-modules "bind_c_implicit_vars" } } |