diff options
Diffstat (limited to 'clang/test/SemaCXX/parentheses.cpp')
| -rw-r--r-- | clang/test/SemaCXX/parentheses.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/SemaCXX/parentheses.cpp b/clang/test/SemaCXX/parentheses.cpp new file mode 100644 index 00000000000..b430b25e5d6 --- /dev/null +++ b/clang/test/SemaCXX/parentheses.cpp @@ -0,0 +1,8 @@ +// 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}} +} |

