rust/tests/ui/abi/c-stack-as-value.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
248 B
Rust
Raw Normal View History

//@ run-pass
//@ pretty-expanded FIXME #23616
mod rustrt {
2016-11-24 00:09:51 +00:00
#[link(name = "rust_test_helpers", kind = "static")]
2020-09-01 21:12:52 +00:00
extern "C" {
pub fn rust_get_test_int() -> isize;
}
}
pub fn main() {
2013-08-17 15:37:42 +00:00
let _foo = rustrt::rust_get_test_int;
}