Skip to content

Commit b709b87

Browse files
committed
tests: Add test function that does not specify ABI
1 parent 5ae0f26 commit b709b87

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/ui/escape_analysis.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,3 +179,6 @@ mod issue_3739 {
179179
///
180180
/// This shouldn't warn for `boxed_local` as it is intended to called from non-Rust code.
181181
pub extern "C" fn do_not_warn_me(_c_pointer: Box<String>) -> () {}
182+
183+
#[rustfmt::skip] // Forces rustfmt to not add ABI
184+
pub extern fn do_not_warn_me_no_abi(_c_pointer: Box<String>) -> () {}

0 commit comments

Comments
 (0)