Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/getenv_1.f90 @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
! { dg-do run } ! Test the getenv and get_environment_variable intrinsics. ! Ignore the return value because it's not supported/meaningful on all targets program getenv_1 implicit none character(len=101) :: var character(len=*), parameter :: home = 'HOME' integer :: len, stat call getenv(name=home, value=var) call get_environment_variable(name=home, value=var, & length=len, status=stat) end program getenv_1