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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [iso_fortran_env_3.f90] - Blame information for rev 694

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do run }
2
subroutine foo1 (x,y)
3
  use iso_fortran_env
4
  integer, intent(out) :: x, y
5
 
6
  x = numeric_storage_size
7
  y = character_storage_size
8
end
9
 
10
subroutine foo2 (x,y)
11
  use iso_fortran_env, foo => numeric_storage_size
12
  integer, intent(in) :: x, y
13
 
14
  if (foo /= x .or. character_storage_size /= y) call abort
15
end
16
 
17
subroutine foo3 (x,y)
18
  use iso_fortran_env, only : numeric_storage_size, character_storage_size
19
  integer, intent(in) :: x, y
20
 
21
  if (numeric_storage_size /= x .or. character_storage_size /= y) call abort
22
end
23
 
24
program test
25
  integer :: x, y
26
  call foo1(x,y)
27
  call foo2(x,y)
28
  call foo3(x,y)
29
end

powered by: WebSVN 2.1.0

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