rust/tests/run-make/compiler-rt-works-on-mingw/foo.rs

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

11 lines
120 B
Rust
Raw Normal View History

2020-09-01 16:12:52 -05:00
extern "C" {
fn foo();
}
2015-10-23 11:31:12 -05:00
pub fn main() {
2020-09-01 16:12:52 -05:00
unsafe {
foo();
}
2015-10-23 11:31:12 -05:00
assert_eq!(7f32.powi(3), 343f32);
}