blob: fb0a809e64341671844acb3382722924fed31044 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
! { 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
|