]> git.lizzy.rs Git - rust.git/blob - tests/debuginfo/gdb-char.rs
Rollup merge of #107780 - compiler-errors:instantiate-binder, r=lcnr
[rust.git] / tests / debuginfo / gdb-char.rs
1 // GDB got support for DW_ATE_UTF in 11.2, see
2 // https://sourceware.org/bugzilla/show_bug.cgi?id=28637.
3
4 // min-gdb-version: 11.2
5 // compile-flags: -g
6
7 // === GDB TESTS ===================================================================================
8
9 // gdb-command:run
10 // gdb-command:print ch
11 // gdb-check:$1 = 97 'a'
12
13 #![allow(unused_variables)]
14 #![feature(omit_gdb_pretty_printer_section)]
15 #![omit_gdb_pretty_printer_section]
16
17 fn main() {
18     let ch: char = 'a';
19
20     zzz(); // #break
21 }
22
23 fn zzz() {()}