OpenCores
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 749

Go to most recent revision | 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

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.