URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [cpp/] [ucn-1.C] - Rev 307
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