From 95c505d92a64ff86a081d108e33b4e4f1e70ebfb Mon Sep 17 00:00:00 2001 From: David Wood Date: Mon, 28 Oct 2019 18:51:16 +0000 Subject: [PATCH] tests: add `#[repr(C)]` to test Signed-off-by: David Wood --- src/test/ui/align-with-extern-c-fn.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/test/ui/align-with-extern-c-fn.rs b/src/test/ui/align-with-extern-c-fn.rs index b336ed76940c..8ba90225c6c7 100644 --- a/src/test/ui/align-with-extern-c-fn.rs +++ b/src/test/ui/align-with-extern-c-fn.rs @@ -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() {