Skip to content

Commit

Permalink
tests: add #[repr(C)] to test
Browse files Browse the repository at this point in the history
Signed-off-by: David Wood <david@davidtw.co>
  • Loading branch information
davidtwco committed Nov 5, 2019
1 parent cb60654 commit 95c505d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/test/ui/align-with-extern-c-fn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 95c505d

Please sign in to comment.