OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [udlit-raw-op.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
// { dg-do run }
2
// { dg-options "-std=c++0x" }
3
 
4
#include 
5
#include 
6
 
7
int
8
operator"" _raw_umber(const char * str)
9
{
10
  return strlen(str);
11
}
12
 
13
int
14
main()
15
{
16
  int i = 0123012301230123012301230123012301230123012301230123012301230123_raw_umber;
17
  assert( i == 64 );
18
 
19
  int j = 90123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789_raw_umber;
20
  assert( j == 101 );
21
}

powered by: WebSVN 2.1.0

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