rust/src/test/run-pass/c-stack-as-value.rs
Niko Matsakis 973a285371 move uses of rust ABI in tests to cdecl or c-stack-cdecl as appr
Note: I found a bug in c-stack-cdecl which codes not permit such
native functions to be used as values.  I added an xfail-test
(c-stack-as-value) documenting it.
2011-10-24 16:06:18 -07:00

10 lines
126 B
Rust

// xfail-test
native "c-stack-cdecl" mod rustrt {
fn unsupervise();
}
fn main() {
let _foo = rustrt::unsupervise;
}