llvm/clang/test/Driver/hip-inputs.hip
Aaron Ballman 530ea28fef Correct a lot of diagnostic wordings for the driver
Clang diagnostics should not start with a capital letter or use
trailing punctuation (https://clang.llvm.org/docs/InternalsManual.html#the-format-string),
but quite a few driver diagnostics were not following this advice. This
corrects the grammar and punctuation to improve consistency, but does
not change the circumstances under which the diagnostics are produced.
2021-08-05 07:04:55 -04:00

24 lines
912 B
Plaintext

// REQUIRES: clang-driver
// REQUIRES: x86-registered-target
// REQUIRES: amdgpu-registered-target
// RUN: %clang -ccc-print-phases -target x86_64-linux-gnu \
// RUN: -x hip --cuda-gpu-arch=gfx803 -c \
// RUN: %S/Inputs/hip_multiple_inputs/a.cu \
// RUN: %S/Inputs/hip_multiple_inputs/b.hip 2>&1 \
// RUN: | FileCheck %s
// RUN: not %clang -ccc-print-phases -target x86_64-linux-gnu \
// RUN: --cuda-gpu-arch=gfx803 -c \
// RUN: %S/Inputs/hip_multiple_inputs/a.cu \
// RUN: %S/Inputs/hip_multiple_inputs/b.hip 2>&1 \
// RUN: | FileCheck -check-prefix=MIX %s
// RUN: not %clang -ccc-print-phases -target x86_64-linux-gnu \
// RUN: --cuda-gpu-arch=gfx803 -c \
// RUN: --hip-link %S/Inputs/hip_multiple_inputs/a.cu 2>&1 \
// RUN: | FileCheck -check-prefix=MIX %s
// CHECK-NOT: error: mixed CUDA and HIP compilation is not supported
// MIX: error: mixed CUDA and HIP compilation is not supported