modula2: Simplify REAL/LONGREAL/SHORTREAL node creation.
[official-gcc.git] / gcc / testsuite / gfortran.dg / binding_label_tests_8.f03
blobbe5d004204c178c17b7456de10dabeb29391dae9
1 ! { dg-do compile }
2 module binding_label_tests_8
3   use, intrinsic :: iso_c_binding, only: c_int
4   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." }
6 contains
7   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." }
8   end subroutine my_f90_sub
9 end module binding_label_tests_8