Add a test that bare functions are word-sized

Issue #1022
This commit is contained in:
Brian Anderson 2011-10-10 18:11:09 -07:00
parent 90c2402089
commit b04f84275a

View file

@ -0,0 +1,9 @@
// 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>();
}