OpenCores
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/] [cpp0x/] [bracket2.C] - Blame information for rev 301

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 301 jeremybenn
// { dg-do "compile" }
2
// { dg-options "-std=gnu++0x" }
3
 
4
template class X { /* ... */ };
5
X< 1>2 > x1;    // // { dg-error "numeric constant" }
6
X<(1>2)> x2;    // Okay.
7
 
8
template class Y { /* ... */ };
9
Y> x3;     // Okay, same as "Y > x3;".
10
Y>1>> x4;  // { dg-error "numeric constant" }
11
Y>1)>> x5;  // Okay

powered by: WebSVN 2.1.0

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