clang/test/Driver/cuda-no-sanitizers.cu
raw| 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 |
| 7 | |
| 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" |