Richard Smith | 556ef7f | 2013-08-19 22:06:05 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -verify %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 | } |