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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [warn/] [Wparentheses-26.C] - Blame information for rev 749

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

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/51064
2
// { dg-options "-Wparentheses" }
3
 
4
template> 3)> class foo1 { };
5
typedef foo1<10> bar1;
6
 
7
template> 3)> class foo2 { };
8
typedef foo2<10> bar2;  // { dg-warning "suggest parentheses around '\\+'" }
9
 
10
template> (i + 2))> class foo3 { };
11
typedef foo3<3> bar3;
12
 
13
template> i + 2)> class foo4 { };
14
typedef foo4<3> bar4;   // { dg-warning "suggest parentheses around '\\+'" }
15
 
16
template class foo5 { };
17
typedef foo5<10> bar5;
18
 
19
template class foo6 { };
20
typedef foo6<10> bar6;  // { dg-warning "suggest parentheses around arithmetic" }
21
 
22
template class foo7 { };
23
typedef foo7<10> bar7;
24
 
25
template class foo8 { };
26
typedef foo8<10> bar8;  // { dg-warning "suggest parentheses around arithmetic" }

powered by: WebSVN 2.1.0

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