]> git.lizzy.rs Git - rust.git/commitdiff
Fix extern-pass-empty test, which needed repr(C)
authorAustin Hicks <camlorn@camlorn.net>
Fri, 18 Nov 2016 19:20:02 +0000 (14:20 -0500)
committerAustin Hicks <camlorn@camlorn.net>
Wed, 14 Dec 2016 17:28:19 +0000 (12:28 -0500)
src/test/run-pass/extern-pass-empty.rs

index cce7dc5bf32ef8e23815840e811d03818ae55cd5..2606c92868004715a1fe621fc17b7c8a153a6b1a 100644 (file)
 // ignore-msvc
 // ignore-emscripten
 
+#[repr(C)]
 struct TwoU8s {
     one: u8,
     two: u8,
 }
 
+#[repr(C)]
 struct ManyInts {
     arg1: i8,
     arg2: i16,
@@ -28,6 +30,7 @@ struct ManyInts {
     arg6: TwoU8s,
 }
 
+#[repr(C)]
 struct Empty;
 
 #[link(name = "rust_test_helpers", kind = "static")]