]> git.proxmox.com Git - rustc.git/blob - tests/mir-opt/const_debuginfo.rs
New upstream version 1.68.2+dfsg1
[rustc.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