about summary refs log tree commit diff
path: root/tests/codegen/inline-function-args-debug-info.rs
diff options
context:
space:
mode:
authorBen Kimock <kimockb@gmail.com>2023-10-06 20:29:42 -0400
committerBen Kimock <kimockb@gmail.com>2023-10-17 19:53:51 -0400
commit33b0e4be060c8a3f5cc86b6a3e89d8e980a9a51b (patch)
tree79040aac88d1e13a620fd8d730822a727a6cf323 /tests/codegen/inline-function-args-debug-info.rs
parent09df6108c84fdec400043d99d9ee232336fd5a9f (diff)
downloadrust-33b0e4be060c8a3f5cc86b6a3e89d8e980a9a51b.tar.gz
rust-33b0e4be060c8a3f5cc86b6a3e89d8e980a9a51b.zip
Automatically enable cross-crate inlining for small functions
Diffstat (limited to 'tests/codegen/inline-function-args-debug-info.rs')
-rw-r--r--tests/codegen/inline-function-args-debug-info.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/codegen/inline-function-args-debug-info.rs b/tests/codegen/inline-function-args-debug-info.rs
index e3d8caa49d4..ffae99e0f24 100644
--- a/tests/codegen/inline-function-args-debug-info.rs
+++ b/tests/codegen/inline-function-args-debug-info.rs
@@ -6,6 +6,7 @@
 
 #![crate_type = "lib"]
 
+#[inline(never)]
 pub fn outer_function(x: usize, y: usize) -> usize {
     inner_function(x, y) + 1
 }
@@ -13,8 +14,8 @@ pub fn outer_function(x: usize, y: usize) -> usize {
 #[inline]
 fn inner_function(aaaa: usize, bbbb: usize) -> usize {
     // CHECK: !DILocalVariable(name: "aaaa", arg: 1
-    // CHECK-SAME: line: 14
+    // CHECK-SAME: line: 15
     // CHECK: !DILocalVariable(name: "bbbb", arg: 2
-    // CHECK-SAME: line: 14
+    // CHECK-SAME: line: 15
     aaaa + bbbb
 }