Skip to content

Commit 95c505d

Browse files
committed
tests: add #[repr(C)] to test
Signed-off-by: David Wood <[email protected]>
1 parent cb60654 commit 95c505d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/test/ui/align-with-extern-c-fn.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,9 @@
77

88
#![feature(repr_align)]
99

10-
#[repr(align(16))]
10+
#[repr(align(16), C)]
1111
pub struct A(i64);
1212

13-
#[allow(improper_ctypes)]
1413
pub extern "C" fn foo(x: A) {}
1514

1615
fn main() {

0 commit comments

Comments
 (0)