Skip to content

Commit b155fb3

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

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
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 -Cunsafe-allow-abi-mismatch=sanitizer
11+
//@ [safestack_strong] compile-flags: -Z stack-protector=strong -Z sanitizer=safestack -Cunsafe-allow-abi-mismatch=sanitizer
12+
//@ [safestack_all] compile-flags: -Z stack-protector=all -Z sanitizer=safestack -Cunsafe-allow-abi-mismatch=sanitizer
1313
//@ compile-flags: -C opt-level=2 -Z merge-functions=disabled
1414

1515
#![crate_type = "lib"]

0 commit comments

Comments
 (0)