[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Driver / unsupported-option-gpu.c
blob5618b2cba72e169faeb118824f2e35c99c7af365
1 /// Some target-specific options are ignored for GPU, so %clang exits with code 0.
2 // DEFINE: %{check} = %clang -### --target=x86_64-linux-gnu -c -mcmodel=medium
4 // RUN: %{check} -x cuda %s --cuda-path=%S/Inputs/CUDA/usr/local/cuda --offload-arch=sm_60 --no-cuda-version-check -fbasic-block-sections=all
5 // RUN: %{check} -x hip %s --offload=spirv64 -nogpulib -nogpuinc
6 // RUN: %{check} -x hip %s --rocm-path=%S/Inputs/rocm -nogpulib -nogpuinc