aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp1z/utf8-neg.C
blob: d9e982f5c011006b32835dd7be7155d0ced22cbc (plain)
1
2
3
4
5
6
/* { dg-do compile { target c++17 } } */

const static char c0 = u8'';		// { dg-error "empty character" }
const static char c1 = u8'ab';  	// { dg-error "multi-character literal cannot have an encoding prefix" }
const static char c2 = u8'\u0124';	// { dg-error "character not encodable in a single code unit" }
const static char c3 = u8'\U00064321';  // { dg-error "character not encodable in a single code unit" }