| 1 |
! { dg-do compile } |
| 2 |
! { dg-compile-aux-modules "binding_label_tests_10.f03" } |
| 3 |
module binding_label_tests_10_main |
| 4 |
use iso_c_binding |
| 5 |
implicit none |
| 6 |
integer(c_int), bind(c,name="c_one") :: one ! { dg-error "Variable 'one' from module 'binding_label_tests_10' with binding label 'c_one' at .1. uses the same global identifier as entity at .2. from module 'binding_label_tests_10_main'" } |
| 7 |
end module binding_label_tests_10_main |
| 8 |
|
| 9 |
program main |
| 10 |
use binding_label_tests_10 ! { dg-error "Variable 'one' from module 'binding_label_tests_10' with binding label 'c_one' at .1. uses the same global identifier as entity at .2. from module 'binding_label_tests_10_main'" } |
| 11 |
use binding_label_tests_10_main |
| 12 |
end program main |