From 49be10a8179165d24bbb8eb3490c4ca6f94b42c4 Mon Sep 17 00:00:00 2001 From: Daniel Mueller Date: Fri, 1 Nov 2019 07:42:33 -0700 Subject: Update libc crate to 0.2.66 This change updates the libc crate to version 0.2.66. Import subrepo libc/:libc at 4f11029a68040c90acf771976b019c1ef273a8cd --- libc/tests/const_fn.rs | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 libc/tests/const_fn.rs (limited to 'libc/tests/const_fn.rs') diff --git a/libc/tests/const_fn.rs b/libc/tests/const_fn.rs new file mode 100644 index 0000000..0e7e186 --- /dev/null +++ b/libc/tests/const_fn.rs @@ -0,0 +1,5 @@ +#![cfg(libc_const_extern_fn)] // If this does not hold, the file is empty + +#[cfg(target_os = "linux")] +const _FOO: libc::c_uint = unsafe { libc::CMSG_SPACE(1) }; +//^ if CMSG_SPACE is not const, this will fail to compile -- cgit v1.2.1