OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gfortran.dg/] [getenv_1.f90] - Blame information for rev 154

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
! { dg-do run }
2
! Test the getenv and get_environment_variable intrinsics.
3
! Ignore the return value because it's not supported/meaningful on all targets
4
program getenv_1
5
  implicit none
6
  character(len=101) ::  var
7
  character(len=*), parameter :: home = 'HOME'
8
  integer :: len, stat
9
  call getenv(name=home, value=var)
10
  call get_environment_variable(name=home, value=var, &
11
       length=len, status=stat)
12
end program getenv_1

powered by: WebSVN 2.1.0

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