Skip to content

Commit c9d0ee1

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

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,11 @@
88
//@ [strong] compile-flags: -Z stack-protector=strong
99
//@ [none] compile-flags: -Z stack-protector=none
1010
//@ [safestack] compile-flags: -Z stack-protector=none -Z sanitizer=safestack
11+
// RUSTFLAGS: -Cunsafe-allow-abi-mismatch=sanitizer
1112
//@ [safestack_strong] compile-flags: -Z stack-protector=strong -Z sanitizer=safestack
13+
// RUSTFLAGS: -Cunsafe-allow-abi-mismatch=sanitizer
1214
//@ [safestack_all] compile-flags: -Z stack-protector=all -Z sanitizer=safestack
15+
// RUSTFLAGS: -Cunsafe-allow-abi-mismatch=sanitizer
1316
//@ compile-flags: -C opt-level=2 -Z merge-functions=disabled
1417

1518
#![crate_type = "lib"]

0 commit comments

Comments
 (0)