summaryrefslogtreecommitdiffstats
path: root/tests/run-make/compiler-rt-works-on-mingw/foo.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run-make/compiler-rt-works-on-mingw/foo.rs')
-rw-r--r--tests/run-make/compiler-rt-works-on-mingw/foo.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/run-make/compiler-rt-works-on-mingw/foo.rs b/tests/run-make/compiler-rt-works-on-mingw/foo.rs
new file mode 100644
index 000000000..7fdb81588
--- /dev/null
+++ b/tests/run-make/compiler-rt-works-on-mingw/foo.rs
@@ -0,0 +1,10 @@
+extern "C" {
+ fn foo();
+}
+
+pub fn main() {
+ unsafe {
+ foo();
+ }
+ assert_eq!(7f32.powi(3), 343f32);
+}