summaryrefslogtreecommitdiffstats
path: root/tests/run-make/cross-lang-lto-pgo-smoketest/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run-make/cross-lang-lto-pgo-smoketest/main.rs')
-rw-r--r--tests/run-make/cross-lang-lto-pgo-smoketest/main.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/run-make/cross-lang-lto-pgo-smoketest/main.rs b/tests/run-make/cross-lang-lto-pgo-smoketest/main.rs
new file mode 100644
index 000000000..8129dcb85
--- /dev/null
+++ b/tests/run-make/cross-lang-lto-pgo-smoketest/main.rs
@@ -0,0 +1,11 @@
+#[link(name = "xyz")]
+extern "C" {
+ fn c_always_inlined() -> u32;
+ fn c_never_inlined() -> u32;
+}
+
+fn main() {
+ unsafe {
+ println!("blub: {}", c_always_inlined() + c_never_inlined());
+ }
+}