]> git.lizzy.rs Git - rust.git/blob - tests/mir-opt/const_debuginfo.rs
Rollup merge of #107719 - WaffleLapkin:de-arena-allocates-you-UwU, r=cjgillot
[rust.git] / tests / mir-opt / const_debuginfo.rs
1 // compile-flags: -C overflow-checks=no -Zunsound-mir-opts
2
3 struct Point {
4     x: u32,
5     y: u32,
6 }
7
8 fn main() {
9     let x = 1u8;
10     let y = 2u8;
11     let z = 3u8;
12     let sum = x + y + z;
13
14     let s = "hello, world!";
15
16     let f = (true, false, 123u32);
17
18     let o = Some(99u16);
19
20     let p = Point { x: 32, y: 32 };
21     let a = p.x + p.y;
22 }
23
24 // EMIT_MIR const_debuginfo.main.ConstDebugInfo.diff