OpenCores
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/] [global_vars_f90_init.f90] - Blame information for rev 308

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

Line No. Rev Author Line
1 302 jeremybenn
! { dg-do run }
2
! { dg-additional-sources global_vars_f90_init_driver.c }
3
module global_vars_f90_init
4
  use, intrinsic :: iso_c_binding, only: c_int
5
  implicit none
6
 
7
  integer(c_int), bind(c, name='i') :: I = 2
8
 
9
contains
10
  subroutine test_globals() bind(c)
11
    ! the value of I is initialized above
12
    if(I .ne. 2) then
13
       call abort()
14
    endif
15
  end subroutine test_globals
16
end module global_vars_f90_init
17
 
18
! { dg-final { cleanup-modules "global_vars_f90_init" } }

powered by: WebSVN 2.1.0

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