brintos

brintos / llvm-project-archived public Read only

0
0
Text · 244 B · d466bd0 Raw
9 lines · cpp
1// RUN: %clang_cc1 -verify -Wlogical-op-parentheses %s2 3// PR16930, PR16727:4template<class Foo>5bool test(Foo f, int *array)6{7  return false && false || array[f.get()]; // expected-warning {{'&&' within '||'}} expected-note {{parentheses}}8}9