URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gfortran.dg/] [c_size_t_test.f03] - Rev 308
Go to most recent revision | Compare with Previous | Blame | View Log
! { dg-do run }
! { dg-additional-sources c_size_t_driver.c }
module c_size_t_test
use, intrinsic :: iso_c_binding
contains
subroutine sub0(my_c_size) bind(c)
integer(c_int), value :: my_c_size ! value of C's sizeof(size_t)
! if the value of c_size_t isn't equal to the value of C's sizeof(size_t)
! we call abort.
if(c_size_t .ne. my_c_size) then
call abort ()
end if
end subroutine sub0
end module c_size_t_test
! { dg-final { cleanup-modules "c_size_t_test" } }
Go to most recent revision | Compare with Previous | Blame | View Log