Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
clang
/
a41c97a5d1912ffd184381d269fd8e5a25ee5e59
/
.
/
test
/
SemaCXX
/
parentheses.cpp
blob: b430b25e5d68376cff7dacbf1d533490275162b9 [
file
] [
log
] [
blame
]
// RUN: %clang_cc1 -verify %s
// PR16930, PR16727:
template
<
class
Foo
>
bool
test
(
Foo
f
,
int
*
array
)
{
return
false
&&
false
||
array
[
f
.
get
()];
// expected-warning {{'&&' within '||'}} expected-note {{parentheses}}
}