tests: add #[repr(C)] to test
Signed-off-by: David Wood <david@davidtw.co>
This commit is contained in:
parent
cb60654f78
commit
95c505d92a
1 changed files with 1 additions and 2 deletions
|
|
@ -7,10 +7,9 @@
|
|||
|
||||
#![feature(repr_align)]
|
||||
|
||||
#[repr(align(16))]
|
||||
#[repr(align(16), C)]
|
||||
pub struct A(i64);
|
||||
|
||||
#[allow(improper_ctypes)]
|
||||
pub extern "C" fn foo(x: A) {}
|
||||
|
||||
fn main() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue