================ @@ -0,0 +1,15 @@ +// RUN: %clang_analyze_cc1 -analyzer-checker=core.DivideZero -std=c++23 -verify %s +// expected-no-diagnostics + +struct S +{ + constexpr auto operator==(this auto, S) + { + return true; + } +}; + +int main() +{ + return S {} == S {}; +} ---------------- steakhal wrote:
Speaking of this test, it might be better to dedicate a file for "deducing this". https://github.com/llvm/llvm-project/pull/83585 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits