]> git.proxmox.com Git - rustc.git/blobdiff - tests/run-make/cross-lang-lto-pgo-smoketest/rustlib.rs
Update upstream source from tag 'upstream/1.70.0+dfsg1'
[rustc.git] / tests / run-make / cross-lang-lto-pgo-smoketest / rustlib.rs
diff --git a/tests/run-make/cross-lang-lto-pgo-smoketest/rustlib.rs b/tests/run-make/cross-lang-lto-pgo-smoketest/rustlib.rs
new file mode 100644 (file)
index 0000000..8a74d74
--- /dev/null
@@ -0,0 +1,12 @@
+#![crate_type="staticlib"]
+
+#[no_mangle]
+pub extern "C" fn rust_always_inlined() -> u32 {
+    42
+}
+
+#[no_mangle]
+#[inline(never)]
+pub extern "C" fn rust_never_inlined() -> u32 {
+    421
+}