diff options
Diffstat (limited to 'test/Driver/cuda-no-sanitizers.cu')
-rw-r--r-- | test/Driver/cuda-no-sanitizers.cu | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/Driver/cuda-no-sanitizers.cu b/test/Driver/cuda-no-sanitizers.cu new file mode 100644 index 000000000000..a466b42d8c42 --- /dev/null +++ b/test/Driver/cuda-no-sanitizers.cu @@ -0,0 +1,13 @@ +// Check that -fsanitize=foo doesn't get passed down to device-side +// compilation. +// +// REQUIRES: clang-driver +// +// RUN: %clang -### -target x86_64-linux-gnu -c --cuda-gpu-arch=sm_20 -fsanitize=address %s 2>&1 | \ +// RUN: FileCheck %s + +// CHECK-NOT: error: unsupported option '-fsanitize=address' +// CHECK-DAG: "-fcuda-is-device" +// CHECK-NOT: "-fsanitize=address" +// CHECK-DAG: "-triple" "x86_64--linux-gnu" +// CHECK: "-fsanitize=address" |