The exec.f90 test sets an environment variable for a specific command directly rather than using env, which doesn't work on shells that don't support this syntax, most notably the LIT integrated shell. This patch simply adds env so that this works on the integrated shell.
12 lines
278 B
Fortran
12 lines
278 B
Fortran
! UNSUPPORTED: system-windows
|
|
! Verify that flang can correctly build executables.
|
|
|
|
! RUN: %flang %s -o %t
|
|
! RUN: env LD_LIBRARY_PATH="$LD_LIBRARY_PATH:%llvmshlibdir" %t | FileCheck %s
|
|
! RUN: rm -f %t
|
|
|
|
! CHECK: Hello, World!
|
|
program hello
|
|
print *, "Hello, World!"
|
|
end program
|