extern-fn-explicit-align test: use ffi::c_char instead of i8

This commit is contained in:
Erik Desjardins 2023-05-17 08:31:35 -04:00
parent fdaaf86cc0
commit 84ff2e3d1c

View File

@ -1,6 +1,6 @@
// Issue #80127: Passing structs via FFI should work with explicit alignment.
use std::ffi::CString;
use std::ffi::{CString, c_char};
use std::ptr::null_mut;
#[derive(Clone, Copy, Debug, PartialEq)]
@ -23,7 +23,7 @@ pub struct BoolAndU32 {
fn many_args(
a: *mut (),
b: *mut (),
c: *const i8,
c: *const c_char,
d: u64,
e: bool,
f: BoolAndU32,
@ -33,7 +33,7 @@ fn many_args(
j: *mut (),
k: *mut (),
l: *mut (),
m: *const i8,
m: *const c_char,
) -> i32;
}