brintos

brintos / llvm-project-archived public Read only

0
0
Text · 657 B · 49462a6 Raw
12 lines · plain
1 2// Check that we raise an error if we're trying to compile CUDA code but can't3// find a CUDA install, unless -nocudainc was passed.4 5// RUN: not %clang -### --sysroot=%s/no-cuda-there --cuda-path-ignore-env %s 2>&1 | FileCheck %s --check-prefix ERR6// RUN: not %clang -### --cuda-path=%s/no-cuda-there %s 2>&1 | FileCheck %s --check-prefix ERR7// ERR: cannot find CUDA installation8 9// RUN: not %clang -### -nocudainc --sysroot=%s/no-cuda-there --cuda-path-ignore-env %s 2>&1 | FileCheck %s --check-prefix OK10// RUN: not %clang -### -nocudainc --cuda-path=%s/no-cuda-there %s 2>&1 | FileCheck %s --check-prefix OK11// OK-NOT: cannot find CUDA installation12