Skip to content

Commit b0b3526

Browse files
committed
add test
1 parent 4e2fd21 commit b0b3526

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/const_fn.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#[cfg(target_os = "linux")]
2+
const _FOO: libc::c_uint = unsafe { libc::CMSG_SPACE(1) };
3+
//^ if CMSG_SPACE is not const, this will fail to compile

0 commit comments

Comments
 (0)