OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [bind_c_usage_2.f03] - Blame information for rev 694

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do compile }
2
use, intrinsic :: iso_c_binding
3
type, bind(c) :: mytype
4
  integer(c_int) :: j
5
end type mytype
6
 
7
type(mytype), bind(c) :: mytype_var ! { dg-error "cannot be BIND.C." }
8
 
9
integer(c_int), bind(c) :: i ! { dg-error "cannot be declared with BIND.C." }
10
integer(c_int), bind(c), dimension(10) :: my_array ! { dg-error "cannot be BIND.C." }
11
 
12
common /COM/ i
13
bind(c) :: /com/
14
 
15
end

powered by: WebSVN 2.1.0

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