about summary refs log tree commit diff
path: root/tests/codegen-llvm/assign-desugar-debuginfo.rs
blob: 77ee8758b3b3b1741d0af62274c21597c94f4f36 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//@ compile-flags: -g -Zmir-opt-level=0

#![crate_type = "lib"]

#[inline(never)]
fn swizzle(a: u32, b: u32, c: u32) -> (u32, (u32, u32)) {
    (b, (c, a))
}

pub fn work() {
    let mut a = 1;
    let mut b = 2;
    let mut c = 3;
    (a, (b, c)) = swizzle(a, b, c);
    println!("{a} {b} {c}");
}

// CHECK-NOT: !DILocalVariable(name: "lhs",