Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 84ff2e3

Browse files
extern-fn-explicit-align test: use ffi::c_char instead of i8
1 parent fdaaf86 commit 84ff2e3

File tree

1 file changed

+3
-3
lines changed
  • tests/run-make/extern-fn-explicit-align

1 file changed

+3
-3
lines changed

tests/run-make/extern-fn-explicit-align/test.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Issue #80127: Passing structs via FFI should work with explicit alignment.
22

3-
use std::ffi::CString;
3+
use std::ffi::{CString, c_char};
44
use std::ptr::null_mut;
55

66
#[derive(Clone, Copy, Debug, PartialEq)]
@@ -23,7 +23,7 @@ extern "C" {
2323
fn many_args(
2424
a: *mut (),
2525
b: *mut (),
26-
c: *const i8,
26+
c: *const c_char,
2727
d: u64,
2828
e: bool,
2929
f: BoolAndU32,
@@ -33,7 +33,7 @@ extern "C" {
3333
j: *mut (),
3434
k: *mut (),
3535
l: *mut (),
36-
m: *const i8,
36+
m: *const c_char,
3737
) -> i32;
3838
}
3939

0 commit comments

Comments
 (0)