arm: Add .type and .size to __gnu_cmse_nonsecure_call [PR115360]
[official-gcc.git] / gcc / testsuite / gfortran.dg / bind_c_usage_2.f03
blobe76215e7f2b1ba70ab0096822a8275a29dc841e6
1 ! { dg-do compile }
2 use, intrinsic :: iso_c_binding
3 type, bind(c) :: mytype
4   integer(c_int) :: j
5 end type mytype
7 type(mytype), bind(c) :: mytype_var ! { dg-error "cannot be BIND.C." }
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." }
12 common /COM/ i
13 bind(c) :: /com/
15 end