Sign in
llvm
/
clang
/
36a094aaa20f6951a530e9bf0250d9afcf8a341b
/
.
/
test
/
SemaCXX
/
parentheses.cpp
blob: d466bd01389b5c99b63c01be8217287a63902cb3 [
file
] [
log
] [
blame
]
// RUN: %clang_cc1 -verify -Wlogical-op-parentheses %s
// PR16930, PR16727:
template
<
class
Foo
>
bool
test
(
Foo
f
,
int
*
array
)
{
return
false
&&
false
||
array
[
f
.
get
()];
// expected-warning {{'&&' within '||'}} expected-note {{parentheses}}
}