1 // Check that -fsanitize=foo doesn't get passed down to device-side
5 // RUN: not %clang -### --target=x86_64-linux-gnu -c --cuda-gpu-arch=sm_20 -fsanitize=address %s 2>&1 | \
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"