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

Subversion Repositories openrisc

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

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do run }
2
! { dg-additional-sources c_size_t_driver.c }
3
module c_size_t_test
4
  use, intrinsic :: iso_c_binding
5
 
6
contains
7
  subroutine sub0(my_c_size) bind(c)
8
    integer(c_int), value :: my_c_size ! value of C's sizeof(size_t)
9
 
10
    ! if the value of c_size_t isn't equal to the value of C's sizeof(size_t)
11
    ! we call abort.
12
    if(c_size_t .ne. my_c_size) then
13
       call abort ()
14
    end if
15
  end subroutine sub0
16
end module c_size_t_test
17
 
18
! { dg-final { cleanup-modules "c_size_t_test" } }

powered by: WebSVN 2.1.0

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