diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2025-07-21 14:34:12 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2025-07-22 14:28:48 +0200 |
| commit | a27f3e3fd1e4d16160f8885b6b06665b5319f56c (patch) | |
| tree | b033935392cbadf6f85d2dbddf433a88e323aeeb /tests/codegen/fn-parameters-on-different-lines-debuginfo.rs | |
| parent | ed93c1783b404d728d4809973a0550eb33cd293f (diff) | |
| download | rust-a27f3e3fd1e4d16160f8885b6b06665b5319f56c.tar.gz rust-a27f3e3fd1e4d16160f8885b6b06665b5319f56c.zip | |
Rename `tests/codegen` into `tests/codegen-llvm`
Diffstat (limited to 'tests/codegen/fn-parameters-on-different-lines-debuginfo.rs')
| -rw-r--r-- | tests/codegen/fn-parameters-on-different-lines-debuginfo.rs | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/tests/codegen/fn-parameters-on-different-lines-debuginfo.rs b/tests/codegen/fn-parameters-on-different-lines-debuginfo.rs deleted file mode 100644 index 2097567f322..00000000000 --- a/tests/codegen/fn-parameters-on-different-lines-debuginfo.rs +++ /dev/null @@ -1,22 +0,0 @@ -//! Make sure that line debuginfo of function parameters are correct even if -//! they are not on the same line. Regression test for -// <https://github.com/rust-lang/rust/issues/45010>. - -//@ compile-flags: -g -Copt-level=0 - -#[rustfmt::skip] // Having parameters on different lines is crucial for this test. -pub fn foo( - x_parameter_not_in_std: i32, - y_parameter_not_in_std: i32, -) -> i32 { - x_parameter_not_in_std + y_parameter_not_in_std -} - -fn main() { - foo(42, 43); // Ensure `wasm32-wasip1` keeps `foo()` (even if `-Copt-level=0`) -} - -// CHECK: !DILocalVariable(name: "x_parameter_not_in_std", arg: 1, -// CHECK-SAME: line: 9 -// CHECK: !DILocalVariable(name: "y_parameter_not_in_std", arg: 2, -// CHECK-SAME: line: 10 |
