llvm-for-llvmta/tools/clang/test/Driver/hip-sanitize-options.hip

10 lines
424 B
Plaintext
Raw Permalink Normal View History

2022-04-25 13:02:35 +02:00
// REQUIRES: clang-driver, x86-registered-target, amdgpu-registered-target
// RUN: %clang -### -target x86_64-unknown-linux-gnu --offload-arch=gfx906 \
// RUN: -fsanitize=address \
// RUN: -nogpuinc -nogpulib \
// RUN: %s 2>&1 | FileCheck %s
// CHECK-NOT: {{"[^"]*clang[^"]*".* "-fcuda-is-device".* "-fsanitize=address"}}
// CHECK: {{"[^"]*clang[^"]*".* "-triple" "x86_64-unknown-linux-gnu".* "-fsanitize=address"}}