[Flang][OpenMP] Use internal linkage for OpenMP code-gen'ed helper functions (#117911)
[llvm-project.git] / clang / test / Driver / cuda-no-sanitizers.cu
blob1ae2994bc21827206392da3b0fb5905aa6b9a017
1 // Check that -fsanitize=foo doesn't get passed down to device-side
2 // compilation.
3 //
4 //
5 // RUN: not %clang -### --target=x86_64-linux-gnu -c --cuda-gpu-arch=sm_20 -fsanitize=address %s 2>&1 | \
6 // RUN:   FileCheck %s
8 // CHECK-NOT: error: unsupported option '-fsanitize=address'
9 // CHECK-DAG: "-fcuda-is-device"
10 // CHECK-NOT: "-fsanitize=address"
11 // CHECK-DAG: "-triple" "x86_64-unknown-linux-gnu"
12 // CHECK: "-fsanitize=address"