]> git.proxmox.com Git - rustc.git/blob - src/test/debuginfo/multi-byte-chars.rs
New upstream version 1.33.0+dfsg1
[rustc.git] / src / test / debuginfo / multi-byte-chars.rs
1 // min-lldb-version: 310
2
3 // compile-flags:-g
4
5 #![feature(non_ascii_idents)]
6
7 // This test checks whether debuginfo generation can handle multi-byte UTF-8
8 // characters at the end of a block. There's no need to do anything in the
9 // debugger -- just make sure that the compiler doesn't crash.
10 // See also issue #18791.
11
12 struct C { θ: u8 }
13
14 fn main() {
15 let x = C { θ: 0 };
16 (|c: C| c.θ )(x);
17 }