OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [gfortran.dg/] [binding_label_tests_7.f03] - Diff between revs 302 and 384

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 302 Rev 384
! { dg-do compile }
! { dg-do compile }
module A
module A
  use, intrinsic :: iso_c_binding, only: c_int
  use, intrinsic :: iso_c_binding, only: c_int
  integer(c_int), bind(c, name='my_c_print') :: my_int ! { dg-error "collides" }
  integer(c_int), bind(c, name='my_c_print') :: my_int ! { dg-error "collides" }
end module A
end module A
program main
program main
use A
use A
interface
interface
   subroutine my_c_print() bind(c) ! { dg-error "collides" }
   subroutine my_c_print() bind(c) ! { dg-error "collides" }
   end subroutine my_c_print
   end subroutine my_c_print
end interface
end interface
call my_c_print()
call my_c_print()
end program main
end program main
 
 

powered by: WebSVN 2.1.0

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