blob: 354e1d976b052ace18d3089447fc7dac35aa0275 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2170.html
// { dg-options "-std=c++0x -fextended-identifiers" }
int main()
{
"\u0041"; // 'A' UCN is OK in string literal
'\u0041'; // also OK in character literal
int c\u0041c; // { dg-error "not valid in an identifier" }
int c\u0024c; // $ is OK; not part of basic source char set
U"\uD800"; // { dg-error "not a valid universal character" }
}
|