3 // Test HIP runtime lib args specified by --rocm-path.
4 // RUN: %clang -### --hip-link --target=x86_64-pc-windows-msvc \
5 // RUN: --rocm-path=%S/Inputs/rocm %t.o 2>&1 \
8 // Test HIP runtime lib is linked without --hip-link when there is HIP input file.
9 // RUN: %clang -### --target=x86_64-pc-windows-msvc -nogpuinc -nogpulib \
10 // RUN: --rocm-path=%S/Inputs/rocm %s 2>&1 \
11 // RUN: | FileCheck %s
13 // CHECK: "-libpath:{{.*Inputs.*rocm.*lib}}" "amdhip64.lib"