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_7.f03] - Blame information for rev 774

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

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do compile }
2
module A
3
  use, intrinsic :: iso_c_binding, only: c_int
4
  integer(c_int), bind(c, name='my_c_print') :: my_int ! { dg-error "collides" }
5
end module A
6
 
7
program main
8
use A
9
interface
10
   subroutine my_c_print() bind(c) ! { dg-error "collides" }
11
   end subroutine my_c_print
12
end interface
13
 
14
call my_c_print()
15
end program main
16
 
17
! { dg-final { cleanup-modules "a" } }

powered by: WebSVN 2.1.0

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