brintos

brintos / llvm-project-archived public Read only

0
0
Text · 431 B · 1ae2994 Raw
13 lines · plain
1// Check that -fsanitize=foo doesn't get passed down to device-side2// 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 %s7 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"13