From b0b35265f269bd2195c689705511cc80b98098fe Mon Sep 17 00:00:00 2001 From: Trevor Gross Date: Fri, 22 Nov 2024 04:46:28 -0500 Subject: [PATCH] add test --- tests/const_fn.rs | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 tests/const_fn.rs diff --git a/tests/const_fn.rs b/tests/const_fn.rs new file mode 100644 index 0000000000000..d9b41b8073c70 --- /dev/null +++ b/tests/const_fn.rs @@ -0,0 +1,3 @@ +#[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