PR target/83368
[official-gcc.git] / gcc / testsuite / gfortran.dg / binding_label_tests_6.f03
blob52be7f15f2bb799a005c4b080d77873ff46fed99
1 ! { dg-do compile }
2 module binding_label_tests_6
3   use, intrinsic :: iso_c_binding
4   integer(c_int), bind(c, name='my_int') :: my_f90_int_1 ! { dg-error "Variable 'my_f90_int_2' from module 'binding_label_tests_6' with binding label 'my_int' at .1. uses the same global identifier as entity at .2. from module 'binding_label_tests_6'" }
5   integer(c_int), bind(c, name='my_int') :: my_f90_int_2 ! { dg-error "Variable 'my_f90_int_2' from module 'binding_label_tests_6' with binding label 'my_int' at .1. uses the same global identifier as entity at .2. from module 'binding_label_tests_6'" }
6 end module binding_label_tests_6