[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / clang / test / Driver / cuda-no-sanitizers.cu
blobfdd338755fc98120bdadcdb0398c9202d9a7675f
1 // Check that -fsanitize=foo doesn't get passed down to device-side
2 // compilation.
3 //
4 //
5 // RUN: %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"