Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
gcc
/
testsuite
/
g++.dg
/
warn
/
pr36954.C
blob: 92cea2f38764a7fb3f57a1a4b7cb5b8e0a162ba4 [
file
] [
log
] [
blame
]
// PR c++/36954
// { dg-do compile }
// { dg-options "-Wlogical-op -Wextra -Wall" }
template
<
class
C
>
void
Test
()
{
if
((
1
==
2
)
||
(
true
))
{
}
if
((
1
==
2
)
||
(!
false
))
{
}
if
(
false
||
true
)
{
}
}
int
main
()
{
if
((
1
==
2
)
||
(
true
))
{
}
}