gcc/testsuite/g++.dg/debug/dwarf2/utf-1.C
raw| 1 | // { dg-do compile { target c++20 } } |
| 2 | // { dg-options { -gdwarf-4 -dA } } |
| 3 | |
| 4 | // Test that all three use DW_ATE_UTF. |
| 5 | // This test uses -gdwarf-4 since in DWARF5 optimize_implicit_const |
| 6 | // would optimize the output from: |
| 7 | // .byte 0x10 # DW_AT_encoding |
| 8 | // into: |
| 9 | // # DW_AT_encoding (0x10) |
| 10 | // { dg-final { scan-assembler-times "0x10\[ \t]\[^\n\r]* DW_AT_encoding" 3 } } |
| 11 | |
| 12 | char8_t c8; |
| 13 | char16_t c16; |
| 14 | char32_t c32; |