repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git]
/
clang
/
test
/
SemaCXX
/
parentheses.cpp
blob
d466bd01389b5c99b63c01be8217287a63902cb3
1
// RUN: %clang_cc1 -verify -Wlogical-op-parentheses %s
2
3
// PR16930, PR16727:
4
template
<
class
Foo
>
5
bool
test
(
Foo f
,
int
*
array
)
6
{
7
return false
&&
false
||
array
[
f
.
get
()];
// expected-warning {{'&&' within '||'}} expected-note {{parentheses}}
8
}