提交 b04f8427 编写于 作者: B Brian Anderson

Add a test that bare functions are word-sized

Issue #1022
上级 90c24020
// xfail-test
use std;
fn main() {
// Bare functions should just be a pointer
assert std::sys::rustrt::size_of::<fn#()>() ==
std::sys::rustrt::size_of::<int>();
}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册