repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Daily bump.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
warn
/
pr36954.C
blob
92cea2f38764a7fb3f57a1a4b7cb5b8e0a162ba4
1
// PR c++/36954
2
// { dg-do compile }
3
// { dg-options "-Wlogical-op -Wextra -Wall" }
4
5
template<class C> void Test()
6
{
7
if ((1 == 2) || (true)) {
8
}
9
10
if ((1 == 2) || (!false)) {
11
}
12
13
if (false || true) {
14
}
15
}
16
17
18
19
int main() {
20
if ((1 == 2) || (true)) {
21
}
22
}
23