URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [binding_label_tests_15.f03] - Rev 694
Compare with Previous | Blame | View Log
! { dg-do compile }
! Verify that an error is correctly reported if multiple identifiers are given
! with a bind(c) statement that has a NAME= specifier.
module m
use iso_c_binding
implicit none
integer(c_int), bind(C, name="") :: a,b ! { dg-error "Multiple identifiers" }
integer(c_int), bind(C, name="bob") :: c,d ! { dg-error "Multiple identifiers" }
integer(c_int) :: e,f
bind(c, name="foo") :: e,f ! { dg-error "Multiple identifiers" }
end module m