mirror of
https://github.com/autc04/Retro68.git
synced 2024-09-28 18:56:06 +00:00
10 lines
509 B
Fortran
10 lines
509 B
Fortran
! { dg-do compile }
|
|
module binding_label_tests_8
|
|
use, intrinsic :: iso_c_binding, only: c_int
|
|
integer(c_int), bind(c, name='my_f90_sub') :: my_c_int ! { dg-error "Variable 'my_c_int' with binding label 'my_f90_sub' at .1. uses the same global identifier as entity at .2." }
|
|
|
|
contains
|
|
subroutine my_f90_sub() bind(c) ! { dg-error "Variable 'my_c_int' with binding label 'my_f90_sub' at .1. uses the same global identifier as entity at .2." }
|
|
end subroutine my_f90_sub
|
|
end module binding_label_tests_8
|