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

Subversion Repositories openrisc

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

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

Line No. Rev Author Line
1 694 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.