URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [cpp/] [ucn-1.C] - Rev 774
Go to most recent revision | Compare with Previous | Blame | View Log
// 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" }
}
Go to most recent revision | Compare with Previous | Blame | View Log