diff options
Diffstat (limited to 'gcc/testsuite/gfortran.dg/binding_label_tests_13_main.f03')
-rw-r--r-- | gcc/testsuite/gfortran.dg/binding_label_tests_13_main.f03 | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/binding_label_tests_13_main.f03 b/gcc/testsuite/gfortran.dg/binding_label_tests_13_main.f03 new file mode 100644 index 000000000..1addc9c49 --- /dev/null +++ b/gcc/testsuite/gfortran.dg/binding_label_tests_13_main.f03 @@ -0,0 +1,16 @@ +! { dg-do compile } +! This file must be compiled AFTER binding_label_tests_13.f03, which it +! should be because dejagnu will sort the files. The module file +! binding_label_tests_13.mod can not be removed until after this test is done. +module binding_label_tests_13_main + use, intrinsic :: iso_c_binding, only: c_int + integer(c_int) :: c3 ! { dg-error "collides" } + bind(c) c3 + +contains + subroutine c_sub() BIND(c, name = "C_Sub") + use binding_label_tests_13 ! { dg-error "collides" } + end subroutine c_sub +end module binding_label_tests_13_main +! { dg-final { cleanup-modules "binding_label_tests_13 binding_label_tests_13_main" } } + |