]> git.lizzy.rs Git - rust.git/blob - tests/debuginfo/multi-byte-chars.rs
Merge commit '7f27e2e74ef957baa382dc05cf08df6368165c74' into clippyup
[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 }