gcc/testsuite/rust/debug/i8u8.rs
raw| 1 | // i8 and u8 types should not have the DWARF 'char' encoding. |
| 2 | fn main () { |
| 3 | let x : i8 = 5; |
| 4 | let y : u8 = 7; |
| 5 | // { dg-do compile } |
| 6 | // Use -w to avoid warnings about the unused variables |
| 7 | // { dg-options "-w -g -dA" } |
| 8 | // DW_ATE_signed_char = 6 |
| 9 | // { dg-final { scan-assembler-not "0x6\[ \t]\[^\n\r]* DW_AT_encoding" } } */ |
| 10 | // DW_ATE_unsigned_char = 8 |
| 11 | // { dg-final { scan-assembler-not "0x8\[ \t]\[^\n\r]* DW_AT_encoding" } } */ |
| 12 | } |