URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 302 |
Rev 384 |
! { dg-do compile }
|
! { dg-do compile }
|
use, intrinsic :: iso_c_binding
|
use, intrinsic :: iso_c_binding
|
type, bind(c) :: mytype
|
type, bind(c) :: mytype
|
integer(c_int) :: j
|
integer(c_int) :: j
|
end type mytype
|
end type mytype
|
|
|
type(mytype), bind(c) :: mytype_var ! { dg-error "cannot be BIND.C." }
|
type(mytype), bind(c) :: mytype_var ! { dg-error "cannot be BIND.C." }
|
|
|
integer(c_int), bind(c) :: i ! { dg-error "cannot be declared with BIND.C." }
|
integer(c_int), bind(c) :: i ! { dg-error "cannot be declared with BIND.C." }
|
integer(c_int), bind(c), dimension(10) :: my_array ! { dg-error "cannot be BIND.C." }
|
integer(c_int), bind(c), dimension(10) :: my_array ! { dg-error "cannot be BIND.C." }
|
|
|
common /COM/ i
|
common /COM/ i
|
bind(c) :: /com/
|
bind(c) :: /com/
|
|
|
end
|
end
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.