OpenCores
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] - Blame information for rev 774

Go to most recent revision | Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.