Debian Codegraph @

gcc/testsuite/g++.dg/warn/Wparentheses-3.C

raw
1 // Test that -Wparentheses does not give bogus warnings in the
2 // presence of templates. Bug 17041.
3
4 // { dg-do compile }
5 // { dg-options "-Wparentheses" }
6
7 template<int> struct A
8 {
9 int i;
10 A() { if ((i = 0)) ; }
11 };
12
13 A<0> a;