gcc/testsuite/g++.dg/cpp1z/utf8-neg.C
raw| 1 | /* { dg-do compile { target c++17 } } */ |
| 2 | |
| 3 | const static char c0 = u8''; // { dg-error "empty character" } |
| 4 | const static char c1 = u8'ab'; // { dg-error "multi-character literal cannot have an encoding prefix" } |
| 5 | const static char c2 = u8'\u0124'; // { dg-error "character not encodable in a single code unit" } |
| 6 | const static char c3 = u8'\U00064321'; // { dg-error "character not encodable in a single code unit" } |