diff options
| author | Erik Desjardins <erikdesjardins@users.noreply.github.com> | 2023-05-17 08:31:35 -0400 |
|---|---|---|
| committer | Erik Desjardins <erikdesjardins@users.noreply.github.com> | 2023-07-10 19:19:36 -0400 |
| commit | 84ff2e3d1cf8a2fb55ff639e635b5ab3b8283428 (patch) | |
| tree | da9a79efda86a1648521c41e88e5011f4fd79c21 | |
| parent | fdaaf86cc03421dc96d755bc9e6c5984b124028d (diff) | |
| download | rust-84ff2e3d1cf8a2fb55ff639e635b5ab3b8283428.tar.gz rust-84ff2e3d1cf8a2fb55ff639e635b5ab3b8283428.zip | |
extern-fn-explicit-align test: use ffi::c_char instead of i8
| -rw-r--r-- | tests/run-make/extern-fn-explicit-align/test.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/run-make/extern-fn-explicit-align/test.rs b/tests/run-make/extern-fn-explicit-align/test.rs index ba6cc87bd18..cda6777a42f 100644 --- a/tests/run-make/extern-fn-explicit-align/test.rs +++ b/tests/run-make/extern-fn-explicit-align/test.rs @@ -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 @@ extern "C" { fn many_args( a: *mut (), b: *mut (), - c: *const i8, + c: *const c_char, d: u64, e: bool, f: BoolAndU32, @@ -33,7 +33,7 @@ extern "C" { j: *mut (), k: *mut (), l: *mut (), - m: *const i8, + m: *const c_char, ) -> i32; } |
