Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/bind_c_usage_2.f03 @ 118:fd00160c1b76
ifdef TARGET_64BIT
author | mir3636 |
---|---|
date | Tue, 27 Feb 2018 15:01:35 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
! { dg-do compile } use, intrinsic :: iso_c_binding type, bind(c) :: mytype integer(c_int) :: j end type mytype 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), dimension(10) :: my_array ! { dg-error "cannot be BIND.C." } common /COM/ i bind(c) :: /com/ end