diff options
Diffstat (limited to 'gcc/testsuite/gfortran.dg/binding_label_tests_5.f03')
-rw-r--r-- | gcc/testsuite/gfortran.dg/binding_label_tests_5.f03 | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/binding_label_tests_5.f03 b/gcc/testsuite/gfortran.dg/binding_label_tests_5.f03 new file mode 100644 index 000000000..c8aa4e862 --- /dev/null +++ b/gcc/testsuite/gfortran.dg/binding_label_tests_5.f03 @@ -0,0 +1,12 @@ +! { dg-do compile } +module binding_label_tests_5 + use, intrinsic :: iso_c_binding + + interface + subroutine sub0() bind(c, name='c_sub') ! { dg-error "collides" } + end subroutine sub0 + + subroutine sub1() bind(c, name='c_sub') ! { dg-error "collides" } + end subroutine sub1 + end interface +end module binding_label_tests_5 |