Skip to content

Commit

Permalink
Add a test that out const extern fn macro works
Browse files Browse the repository at this point in the history
  • Loading branch information
tgross35 committed Nov 23, 2024
1 parent 3c7be7c commit 666b332
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/const_fn.rs
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 666b332

Please sign in to comment.