Skip to content

Commit 8aca6c3

Browse files
authored
[AllocToken] Test compatibility with -fsanitize=kcfi,memtag (#168600)
Test that -fsanitize=alloc-token is compatible with kcfi and memtag, as these should also be possible to combine. NFC.
1 parent 4155cdc commit 8aca6c3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

clang/test/Driver/fsanitize-alloc-token.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
// CHECK-NO-TOKEN-ALLOC-NOT: "-fsanitize=alloc-token"
66

77
// RUN: %clang --target=x86_64-linux-gnu -flto -fvisibility=hidden -fno-sanitize-ignorelist -fsanitize=alloc-token,undefined,cfi %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-COMPATIBLE
8+
// RUN: %clang --target=aarch64-linux-android -march=armv8-a+memtag -flto -fvisibility=hidden -fsanitize=alloc-token,kcfi,memtag %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-COMPATIBLE
89
// CHECK-COMPATIBLE: "-fsanitize={{.*}}alloc-token"
910

1011
// RUN: %clang --target=x86_64-linux-gnu -fsanitize=alloc-token -fsanitize-minimal-runtime %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-MINIMAL

0 commit comments

Comments
 (0)