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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [bracket2.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 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.