Skip to content

Commit a6f5cca

Browse files
committed
add -Cunsafe-allow-abi-mismatch=sanitizer to silence ABI mismatch error
1 parent c49f4e1 commit a6f5cca

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

tests/assembly-llvm/stack-protector/stack-protector-safe-stack.rs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,13 @@
77
//@ [all] compile-flags: -Z stack-protector=all
88
//@ [strong] compile-flags: -Z stack-protector=strong
99
//@ [none] compile-flags: -Z stack-protector=none
10-
//@ [safestack] compile-flags: -Z stack-protector=none -Z sanitizer=safestack
11-
//@ [safestack_strong] compile-flags: -Z stack-protector=strong -Z sanitizer=safestack
12-
//@ [safestack_all] compile-flags: -Z stack-protector=all -Z sanitizer=safestack
10+
//@ [safestack] compile-flags: -Z stack-protector=none -Z sanitizer=safestack \
11+
//@ -Cunsafe-allow-abi-mismatch=sanitizer
12+
//@ [safestack_strong] compile-flags: -Z stack-protector=strong -Z sanitizer=safestack \
13+
//@ -Cunsafe-allow-abi-mismatch=sanitizer
14+
//@ [safestack_all] compile-flags: -Z stack-protector=all -Z sanitizer=safestack \
15+
//@ -Cunsafe-allow-abi-mismatch=sanitizer
16+
1317
//@ compile-flags: -C opt-level=2 -Z merge-functions=disabled
1418

1519
#![crate_type = "lib"]

0 commit comments

Comments
 (0)