]> git.lizzy.rs Git - rust.git/blob - tests/debuginfo/multi-byte-chars.rs
Merge commit '7d53619064ab7045c383644cb445052d2a3d46db' into sync_cg_clif-2023-02-09
[rust.git] / tests / debuginfo / multi-byte-chars.rs
1 // min-lldb-version: 310
2
3 // compile-flags:-g
4
5 // This test checks whether debuginfo generation can handle multi-byte UTF-8
6 // characters at the end of a block. There's no need to do anything in the
7 // debugger -- just make sure that the compiler doesn't crash.
8 // See also issue #18791.
9
10 struct C { θ: u8 }
11
12 fn main() {
13     let x =  C { θ: 0 };
14     (|c: C| c.θ )(x);
15 }