diff --git a/libc-test/Cargo.toml b/libc-test/Cargo.toml index c6950d6ea34d8..32ab94aa7ebcd 100644 --- a/libc-test/Cargo.toml +++ b/libc-test/Cargo.toml @@ -26,3 +26,7 @@ name = "linux-fcntl" path = "test/linux_fcntl.rs" harness = false +[[test]] +name = "no-private-align" +path = "test/no_private_align.rs" +harness = false diff --git a/libc-test/test/no_private_align.rs b/libc-test/test/no_private_align.rs new file mode 100644 index 0000000000000..a10a235f49054 --- /dev/null +++ b/libc-test/test/no_private_align.rs @@ -0,0 +1,9 @@ +extern crate libc; + +fn main() { + #[cfg(feature = "align")] + const ADDR: libc::in6_addr = libc::in6_addr { + s6_addr: [0; 16], + }; + println!("PASSED all tests"); +}