================ @@ -122,35 +122,34 @@ void test() { #undef EQ } -void (*fn)(); - -void test2() { - if ((fn == test2)) {} // expected-warning {{equality comparison with extraneous parentheses}} \ - // expected-note {{use '=' to turn this equality comparison into an assignment}} \ - // expected-note {{remove extraneous parentheses around the comparison to silence this warning}} - if ((test2 == fn)) {} +namespace GH101863 { +void t1(auto... args) { + if (((args == 0) or ...)) { } } -namespace rdar9027658 { ---------------- erichkeane wrote:
This also shouldn't be removed. https://github.com/llvm/llvm-project/pull/110761 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits