mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-12-06 04:51:53 +00:00
9 lines
219 B
C++
9 lines
219 B
C++
// 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}}
|
|
}
|