summaryrefslogtreecommitdiffstats
path: root/tests/coverage/issue-85461.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/coverage/issue-85461.rs')
-rw-r--r--tests/coverage/issue-85461.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/coverage/issue-85461.rs b/tests/coverage/issue-85461.rs
new file mode 100644
index 000000000..9d4c90a82
--- /dev/null
+++ b/tests/coverage/issue-85461.rs
@@ -0,0 +1,11 @@
+// Regression test for #85461: MSVC sometimes fail to link with dead code and #[inline(always)]
+
+// aux-build:inline_always_with_dead_code.rs
+extern crate inline_always_with_dead_code;
+
+use inline_always_with_dead_code::{bar, baz};
+
+fn main() {
+ bar::call_me();
+ baz::call_me();
+}