gcc/testsuite/rust/debug/chartype.rs
raw| 1 | // { dg-do compile } |
| 2 | // { dg-skip-if "see https://github.com/Rust-GCC/gccrs/pull/1632" { *-*-darwin* } } |
| 3 | // { dg-options "-w -gdwarf-4 -dA" } |
| 4 | // 'char' should use DW_ATE_UTF |
| 5 | fn main() { |
| 6 | let c = 'x'; |
| 7 | // Use -w to avoid warnings about the unused variables |
| 8 | // DW_ATE_UTF entered in DWARF 4. |
| 9 | // DW_ATE_UTF = 0x10 |
| 10 | // { dg-final { scan-assembler "0x10\[ \t]\[^\n\r]* DW_AT_encoding" } } */ |
| 11 | } |