Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wparentheses-3.C
blob: 8781953b64aca086aa902b350ece8012e905415b [
file
] [
log
] [
blame
]
// Test that -Wparentheses does not give bogus warnings in the
// presence of templates. Bug 17041.
// { dg-do compile }
// { dg-options "-Wparentheses" }
template
<int>
struct
A
{
int
i
;
A
()
{
if
((
i
=
0
))
;
}
};
A
<
0
>
a
;