parent
90c2402089
commit
b04f84275a
1 changed files with 9 additions and 0 deletions
9
src/test/run-pass/fn-bare-size.rs
Normal file
9
src/test/run-pass/fn-bare-size.rs
Normal 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>();
|
||||||
|
}
|
Loading…
Reference in a new issue