summaryrefslogtreecommitdiffstats
path: root/tests/run-make/std-core-cycle/foo.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run-make/std-core-cycle/foo.rs')
-rw-r--r--tests/run-make/std-core-cycle/foo.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/run-make/std-core-cycle/foo.rs b/tests/run-make/std-core-cycle/foo.rs
new file mode 100644
index 000000000..6aa6e1ac3
--- /dev/null
+++ b/tests/run-make/std-core-cycle/foo.rs
@@ -0,0 +1,11 @@
+#![crate_type = "cdylib"]
+
+extern crate bar;
+
+#[global_allocator]
+static A: bar::A = bar::A;
+
+#[no_mangle]
+pub extern "C" fn a(a: u32, b: u32) -> u32 {
+ a / b
+}