diff options
| author | Jakub Beránek <berykubik@gmail.com> | 2025-07-23 14:59:10 +0200 |
|---|---|---|
| committer | Jakub Beránek <berykubik@gmail.com> | 2025-07-23 14:59:10 +0200 |
| commit | 67f73c75477338560fb78003149c11a9fa7d4820 (patch) | |
| tree | 7792f3f9786658de9949e9c27ac4dfb8c63fdb8d /tests/codegen/inline-function-args-debug-info.rs | |
| parent | a343926954a525f491756c3c9714417ae9ccc121 (diff) | |
| parent | 0b88bea0d5169af3b3f9326274bda8b9c4a31823 (diff) | |
| download | rust-67f73c75477338560fb78003149c11a9fa7d4820.tar.gz rust-67f73c75477338560fb78003149c11a9fa7d4820.zip | |
Merge ref '5a30e4307f05' from rust-lang/rust
Pull recent changes from https://github.com/rust-lang/rust via Josh. Upstream ref: 5a30e4307f0506bed87eeecd171f8366fdbda1dc Filtered ref: 59749e9f8c765d3021796a9fe0c188643c4b8d77 This merge was created using https://github.com/rust-lang/josh-sync.
Diffstat (limited to 'tests/codegen/inline-function-args-debug-info.rs')
| -rw-r--r-- | tests/codegen/inline-function-args-debug-info.rs | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/tests/codegen/inline-function-args-debug-info.rs b/tests/codegen/inline-function-args-debug-info.rs deleted file mode 100644 index c31419cb914..00000000000 --- a/tests/codegen/inline-function-args-debug-info.rs +++ /dev/null @@ -1,23 +0,0 @@ -// This test checks that debug information includes function argument indexes even if the function -// gets inlined by MIR inlining. Without function argument indexes, `info args` in gdb won't show -// arguments and their values for the current function. - -//@ compile-flags: -Zinline-mir=yes -Cdebuginfo=2 -//@ edition: 2021 - -#![crate_type = "lib"] - -#[inline(never)] -pub fn outer_function(x: usize, y: usize) -> usize { - inner_function(x, y) + 1 -} - -#[inline] -fn inner_function(aaaa: usize, bbbb: usize) -> usize { - // CHECK: !DILocalVariable(name: "aaaa", arg: 1 - // CHECK-SAME: line: 16 - // CHECK-NOT: !DILexicalBlock( - // CHECK: !DILocalVariable(name: "bbbb", arg: 2 - // CHECK-SAME: line: 16 - aaaa + bbbb -} |
