Files
clang-p2996/flang/test/Driver/exec.f90
David Truby 5c7f7cc4de [flang] Fix exec.f90 test on LIT integrated shell (#93961)
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.
2024-05-31 15:03:44 +01:00

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