1// RUN: not %clang -### --target=x86_64-linux-gnu --no-offload-new-driver \ 2// RUN: -x hip --cuda-gpu-arch=gfx803 --cuda-gpu-arch=gfx900 \ 3// RUN: -c -fhip-emit-relocatable -nogpuinc -nogpulib --cuda-device-only -fgpu-rdc \ 4// RUN: %S/Inputs/hip_multiple_inputs/a.cu \ 5// RUN: %S/Inputs/hip_multiple_inputs/b.hip --gpu-bundle-output \ 6// RUN: 2>&1 | FileCheck -check-prefixes=RELOCRDC %s 7 8// RELOCRDC: error: option '-fhip-emit-relocatable' cannot be specified with '-fgpu-rdc' 9 10// RUN: not %clang -### --target=x86_64-linux-gnu --no-offload-new-driver \ 11// RUN: -x hip --cuda-gpu-arch=gfx803 --cuda-gpu-arch=gfx900 \ 12// RUN: -c -fhip-emit-relocatable -nogpuinc -nogpulib \ 13// RUN: %S/Inputs/hip_multiple_inputs/a.cu \ 14// RUN: %S/Inputs/hip_multiple_inputs/b.hip --gpu-bundle-output \ 15// RUN: 2>&1 | FileCheck -check-prefixes=RELOCHOST %s 16 17// RELOCHOST: error: option '-fhip-emit-relocatable' cannot be specified without '--cuda-device-only' 18