| 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 |
} |