7 lines · plain
1// Checks that cuda compilation does the right thing when passed -fcuda-short-ptr2 3// RUN: %clang -### --target=x86_64-linux-gnu -c -march=haswell --cuda-gpu-arch=sm_20 -fcuda-short-ptr -nocudainc -nocudalib --cuda-path=%S/Inputs/CUDA/usr/local/cuda %s 2>&1 | FileCheck %s4 5// CHECK: "-mllvm" "--nvptx-short-ptr"6// CHECK-SAME: "-fcuda-short-ptr"7