1 // http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2170.html
2 // { dg-do compile { target c++11 } }
7 "\u0041"; // 'A' UCN is OK in string literal
8 '\u0041'; // also OK in character literal
10 int c\u0041c; // { dg-error "not valid in an identifier" }
11 // $ is OK on most targets; not part of basic source char set
12 int c\u0024c; // { dg-error "not valid in an identifier" "" { target { { powerpc-ibm-aix* } || c++26 } } }
14 U"\uD800"; // { dg-error "not a valid universal character" }
16 U'\U00110000'; // { dg-warning "outside" "110000 outside UCS" { target c++2a } }